Skip to content

b-goodman/markdown-converter

Repository files navigation

markdown-converter

Module exports a Showdown converter instance.

const md = require('markdown-converter');

const text = '```javascript\nconst str = "test";\n```';
md.then((f) => {
    console.log(f.makeHtml(text))
});
//'<p><syntax-highlight class="language-javascript"><pre><code class="language-javascript">const str = "test";\n</code></pre></syntax-highlight></p>'

About

Showdown extended for use with custom elements.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published