npm / marky-markdown

npm's markdown parser
https://www.npmjs.com/package/@npmcorp/marky-markdown
405 stars 72 forks source link

[QUESTION] How to add pre and code into code blocks #447

Open jcubic opened 4 years ago

jcubic commented 4 years ago

What / Why

I don't want to use server side syntax highlighting, mostly because scheme and lisp are not supported.

How can I add '<pre class="language-' + lang + '"><code>' + code + '</code></pre>' into code blocks instead of p tag when syntax highlighting is disabled?