Skip to content

GiacomoManzoli/MarkdownTS

Repository files navigation

Build Status

MarkdownTS

A dead simple, pluggable and modular Markdown parser written in TypeScript.

Heavily inspired form CMS.js.

TODOS

  • [~] Complete the parser!
  • Executable blocks to render other code (such as a DOT graph)
  • Parser configuration
  • Play around with a CI system

Usage

// imported via script
let markdown = "YourMarkDownCode";
let engine = new MarkdownTS.Engine();

let html = engine.render(markdown);
document.getElementById("output").innerText = html;

Other

  • 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 the ParagraphRule, which, for the moments works almost correctly only if applied at last.

Releases

No releases published

Packages

No packages published