markdownit how to use highlight

bookyo
0
bookyo
commented 6 months ago

i write markdown content.
after $md.render() :

<pre><code class="language-javascript">var a=123
console.log(2323)
println(2323)
</code></pre>

highlight is not work,.
my nuxt.config.js:

markdownit: {
    breaks: true,
    linkify: true,
    injected: true,
    langPrefix: "language-"
  },
0
Informations
QuestionUnresolved
#c142 - Created 6 months ago