// node.js, the same, but with sugar: varmd = require('markdown-it')(); varresult = md.render('# markdown-it rulezz!');
// browser without AMD, added to "window" on script load // Note, there are no dash. varmd = window.markdownit(); varresult = md.render('# markdown-it rulezz!');
Main parser/renderer class.
Usage
Single line rendering, without paragraph wrap:
Example
Syntax highlighting
Or with full wrapper override (if you need assign class to
<pre>
):