Skip to content

MorganSchmiedt/markdown-browser

Repository files navigation

Markdown to HTML Parser - Browser version

This Markdown-to-HTML parser is the browser version of the Node.js parser available here: @deskeen/markdown

Usage

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>'

Learn more

For information on: @deskeen/markdown

Differences with the Node.js version

The parser returns a standard HTMLElement.

New elements can be created using the standard DOM functions: document.createElement and document.createTextNode.

Contact

You can reach me at {my_firstname}@{my_name}.fr

Licence

MIT Licence - Copyright (c) Morgan Schmiedt

About

Markdown to HTML Parser - Browser version

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published