How to get `hljs` class on code element?
snaptopixel opened this issue · 1 comments
snaptopixel commented
When using with highlightjs the resulting <code>
element should have the hljs
class as well as lang-whatever
in order to properly theme the code with background color etc.
Is there an easy way to configure marked-ts to do this automatically?
snaptopixel commented
NM I figured it out, just add langPrefix: 'hljs lang-'
to the setOptions
call