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.
Test results
Section titled “Test results”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
importandexportstatements at the document level - Curly-brace
{expressions}in flow and text contexts - JSX inside expressions (balanced-brace scanning)
Four-axis bar
Section titled “Four-axis bar”| Axis | Result |
|---|---|
| never-throw | 0 throws across 421 corpus files |
| well-formed | corpus WF = 0 |
| lossless | corpus lossless = 0, byte-exact round-trip |
| conformance | 67/69, 2 ledgered (shrinking) |