Importing highlight.js
highlight = require('https://bundle.run/highlight.js@9.15.6')
then explicitly calling it seems to work.
code = html`<pre><code class=python> ...`
highlight.highlightBlock(code.children[0]);
Importing highlight.js
highlight = require('https://bundle.run/highlight.js@9.15.6')
then explicitly calling it seems to work.
code = html`<pre><code class=python> ...`
highlight.highlightBlock(code.children[0]);