npm.io
2.0.9 • Published 5h ago

@illusions-lab/mdi-core

Licence
MIT
Version
2.0.9
Deps
0
Size
954 kB
Vulns
0
Weekly
0
Stars
2

@illusions-lab/mdi-core

Low-level WebAssembly bindings for the Rust implementation of MDI 2.0. This package is the executable syntax authority used by the higher-level @illusions-lab/mdi binding: it parses complete MDI documents, validates and serializes the versioned document IR, and renders HTML, TXT, EPUB, and DOCX.

Install

npm install @illusions-lab/mdi-core

Most JavaScript applications should use @illusions-lab/mdi instead. It provides typed result objects and stable host-boundary checks:

npm install @illusions-lab/mdi

@illusions-lab/mdi-core is for tooling that intentionally needs the raw generated WASM interface, such as a custom language binding or an integration that transports the Rust JSON IR directly. It is not a second JavaScript parser and does not contain a JavaScript grammar.

Ownership boundary

MDI source → Rust/WASM core → versioned document IR / rendered output

CommonMark, GFM, front matter, MDI extensions, escapes, nesting, diagnostics, and literal fallback are all decided in Rust.

Documentation

MIT licensed.