ts-stack/markdown

How to get `hljs` class on code element?

snaptopixel opened this issue · 1 comments

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?

NM I figured it out, just add langPrefix: 'hljs lang-' to the setOptions call