pre2gfmarkdown-pmb

marked + highlight.js + pre tag finder = drop one script tag into your HTML to replace pre tags with their content rendered as Github-flavored markdown.

Usage no npm install needed!

<script type="module">
  import pre2gfmarkdownPmb from 'https://cdn.skypack.dev/pre2gfmarkdown-pmb';
</script>

README



pre2gfmarkdown-pmb

marked + highlight.js + pre tag finder = drop one script tag into your HTML to replace pre tags with their content rendered as Github-flavored markdown.

For syntax highlight in code snippets, you'll still need to import a compatible style sheet.

Usage

See the code of this demo (live on Github).

Known issues

  • Needs more/better tests and docs.

 

License

Bundle(s) in dist/: see dist/LICENSE.md

Everything else in this project:

MIT