Skip to content

MDX Conformance

Lanexio Parser implements MDX 3.0 — Markdown extended with JSX elements, ESM import/export statements, and curly-brace expressions. The MDX grammar builds on the same engine that drives the Markdown package, inheriting full CommonMark and GFM support.

67 tests pass with conformance on an honest climbing ledger. The remaining cases are tracked per-case and can only shrink.

MDX is structurally more complex than pure Markdown because JSX and expressions must tile alongside prose nodes. The parser handles:

  • Block and inline JSX elements with attributes, fragments, and nested content
  • ESM import and export statements at the document level
  • Curly-brace {expressions} in flow and text contexts
  • JSX inside expressions (balanced-brace scanning)
AxisResult
never-throw0 throws across 421 corpus files
well-formedcorpus WF = 0
losslesscorpus lossless = 0, byte-exact round-trip
conformance67/69, 2 ledgered (shrinking)