Fenced code blocks are wrapped in pre and code tags with a language class taken from the fence, so Prism.js or highlight.js can colour them on your page. The converter itself does not add colours or inline styles.
When to use this
Use to: convert tutorial markdown to HTML for a CMS that doesn't auto-highlight code, generate code-rich blog posts from markdown drafts, port StackOverflow-style answers to your own knowledge base, export code documentation from README.md.
Frequently Asked Questions
Which syntax highlighting library is the output compatible with?
Both Prism.js and highlight.js - they use the same `language-X` class naming convention on the <code> element. Add either library's CSS to your page and the output will pick up styling automatically.
Can it inline syntax-highlighting styles?
No. There is no inline-styles option: code blocks get a language class only. For HTML emails, highlight the code with Prism or highlight.js on a page first, then inline its CSS with an email tool.
Powered by Markdown to HTML Converter.