A dead simple, pluggable and modular Markdown parser written in TypeScript.
Heavily inspired form CMS.js.
- [~] Complete the parser!
- Table? maybe
- Executable blocks to render other code (such as a DOT graph)
- Parser configuration
- Play around with a CI system
// imported via script
let markdown = "YourMarkDownCode";
let engine = new MarkdownTS.Engine();
let html = engine.render(markdown);
document.getElementById("output").innerText = html;
- The regex based approach is limited, it requires an
afterReplace
to clean up the extra HTML tag and also makes difficult to define certain rules, such as theParagraphRule
, which, for the moments works almost correctly only if applied at last.