This Markdown-to-HTML parser is the browser version of the Node.js parser available here: @deskeen/markdown
Download the module from the dist/
directory and add it to your project. You can then import it and use it:
import parser from '{PATH}/markdown.min.mjs'
const html = parser.parse('some markdown text').innerHTML
// html === '<p>some markdown text</p>'
For information on: @deskeen/markdown
The parser returns a standard HTMLElement.
New elements can be created using the standard DOM functions: document.createElement and document.createTextNode.
You can reach me at {my_firstname}@{my_name}.fr
MIT Licence - Copyright (c) Morgan Schmiedt