# Bundled markdown-rs parser Source: , release `markdown` 1.0.0, commit `1506572f9b406431402928f3a8b3df0b4ae2d8f5` (2025-04-23). The Rust sources were copied from the crates.io release. The upstream MIT copyright and license are preserved in [LICENSE](LICENSE). This is a private rumdl module, bundled in its source package so all distribution targets use the same parser fixes. Oxc still parses JavaScript; pulldown-cmark remains rumdl's primary Markdown parser. Integration adaptations: - Sources use rumdl's rustfmt configuration. - Absolute `crate::` paths point into `crate::mdx_parser`. - The module uses the parent library's `alloc` import; crate-only attributes are removed, and upstream lint policy is isolated from rumdl's lint policy. - The HTML renderer is compiled only for parser regression tests. - Standalone-crate documentation examples are marked `ignore`; upstream inline unit tests remain enabled. Upstream optional `serde` and `log` features remain explicitly disabled with `cfg(any())`, as they were in rumdl's dependency configuration. Parser fixes: - Unclosed JSX in a link or image label returns `end-tag-mismatch` in both debug and release builds instead of asserting or accepting an invalid tree. - JSX opened outside a link or image label cannot close inside its buffer; this returns `end-tag-mismatch` instead of panicking. - ATX closing sequences and Setext underlines find their heading ancestor when unclosed JSX is above it on the compilation stack; closing the heading reports `end-tag-mismatch`. ## Incorporated upstream patches The following parser patches are incorporated at the listed source revisions. Dependent changes are applied once. Bindings, new crates, serializer changes, and unrelated extension/API proposals are outside this parser snapshot. | PR | Source revision | Change | | ------------------------------------------------------ | --------------- | ------------------------------------------------------------------------- | | [#206](https://github.com/wooorm/markdown-rs/pull/206) | `aa28ef46f5c9` | test: panic on `