@illusions-lab/mdi-to-html
v2.0.30
Published
Render MDI (.mdi) documents to HTML
Downloads
4,925
Readme
@illusions-lab/mdi-to-html
Renders an MDI-flavoured mdast tree to a complete HTML document with MDI CSS and front-matter metadata. It is a compatibility renderer for unified users; it does not parse MDI source.
Install
npm install @illusions-lab/mdi-to-htmlUsage
import { mdiToHtml } from "@illusions-lab/mdi-to-html";
const html = mdiToHtml(mdastTree);For complete source documents, use renderHtml(source) from
@illusions-lab/mdi.
That route parses and renders in Rust, and is what the MDI CLI uses.
