Skip to content

Tiny (100 lines commented) Markdown parser based completely on Mathieu Henri's mmd.js.

License

Notifications You must be signed in to change notification settings

dnordstrom/parseMarkdown.js

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

8 Commits
 
 
 
 
 
 

Repository files navigation

parseMarkdown.js

A tiny Markdown parser based completely on Mathieu Henri's mmd.js, with somewhat clarified code, and added syntax (such as underbar emphasis) and features (such as escapable characters). It was modified for Polestar, the thing that pulls Markdown from GitHub and puts it on a page.

If you consider using it, I recommend first having a look at Mathieu's original source to see if it suits you better. (It's smaller and has semi-colons, if you're into that.)

The feature set is limited, and that's okay—it is merely meant as a small solution ready to be plugged in anywhere as a simple JavaScript function.

For complete Markdown support, I recommend marked (at about 1200 lines of code, while parseMarkdown.js weighs in at about 100 lines).

Usage

var html = parseMarkdown(markdown) // BOOM

About

Tiny (100 lines commented) Markdown parser based completely on Mathieu Henri's mmd.js.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published