transformime-commonmark
v0.1.0
Published
Transforms Markdown to HTML Elements, adhering to the transformime interface
Downloads
154
Readme
transformime-commonmark
Transformer using commonmark.js
npm install transformime-commonmark
Usage with transformime:
> markdownTransform = require('transformime-commonmark');
> el = mdt.transform("text/markdown", "```python\nimport this\n```\n", document);
> el.innerHTML
'<pre><code class="language-python">import this\n</code></pre>\n'