Since my personal opinion is that line numbers are important to code examples, and since the concept seems to be an anathema to the author of highlight.js, I decided to try out one of the other examples listed in the docs: rainbow.js.
I added the css theme to the head and the inclusion of rainbow.js to the foot (the docs don’t mention a specific highlight method, so it looks like it’s called implicitly).
I can’t seem to get it to work though. Looking through the docs for rainbow.js, it seems that it needs code blocks to be defined like so:
<pre><code data-language="mylang">code here</code></pre>
Whereas Hugo renders them like this
<pre><code class="language-mylang">code here</code></pre>
Am I missing something? Is there something else I need to do, or is rainbow.js not an option in the current codebase?