← Back to Browse
Documentation
MarkdownEngine
Parse markdown into structured AST with plugins for custom syntax, diagrams, and interactive blocks.
★★★★☆ 4.3
145 reviews
4.2k
installs
v1.8.0
MIT
Install
npx skilldock install markdown-engine
About
MarkdownEngine extends standard markdown with a plugin system for custom block types. Supports Mermaid diagrams, math equations, callout boxes, tabs, code playground embedding, and table of contents generation. Outputs to HTML, React components, or JSON AST.
Usage Example
const { parse } = require("markdown-engine");
const result = parse(markdownString, {
plugins: ["mermaid", "math", "callouts"],
output: "html",
toc: true,
highlight: "shiki"
});
console.log(result.html);
console.log(result.toc); // [{level:1, text:"Intro"}, ...]