litpro-commonmark

markdown rendering to html in litpro using commonmark

Usage no npm install needed!

<script type="module">
  import litproCommonmark from 'https://cdn.skypack.dev/litpro-commonmark';
</script>

README

Commonmark

This is a plugin for literate-programming.

Install npm install litpro-commonmark and then you can use this by requiring it in the lprc.js file.

Example lprc.js

module.exports = function (Folder) { require("litpro-commonmark")(Folder); }

Example project.md

This is a file you could run to generate some html using this.

# Sample MD

We just want to create a simple document. 

    <html>
        <body>
            _"content | md"
        </body>

[simple.html](# "save:")

## Content

    I **love** markdown. Can't you tell?

    There are lots of plugins to use:

    * commonmark
    * marked
    * showdown
    * ...

    I went with commonmark because it has a spec!