@mcd-nix/parser
v0.1.3
Published
MCD (Markdown CSV Document) parser for TypeScript/JavaScript
Maintainers
Readme
@mcd-nix/parser
TypeScript/JavaScript bindings for Markdown CSV Document packages.
import { openMcd } from "@mcd-nix/parser";
const doc = await openMcd(bytes);
const validation = doc.validate();
const markdown = doc.markdown({ expandTables: true });doc.blocks() returns canonical Markdown blocks with content-derived IDs such
as block-paragraph-dc66c1418cf858ff. Use these IDs for exact block-level
annotations, citations, rendered HTML anchors, AI references, and source mapping.
Inserting earlier content does not rename an existing block, but editing that
block's own content does. For long-lived table, chart, or image references,
prefer explicit directive ref values.
The package embeds the MCD WebAssembly parser and does not require a separate
mcd CLI installation.
