UNPKG

@tenedev/markdom

Version:

A Markdown and HTML parser for Node.js with TOC generation and anchor support.

15 lines (13 loc) 239 B
type TOC = { level: number; id: string; title: string; }; declare function parse(md: string): { html: string; toc: TOC[]; }; declare const markdom: { parse: typeof parse; }; export { markdom as default, markdom };