mdast-util-mdx-jsx provides mdast extensions to parse and serialize MDX JSX syntax (for example, `<a />`) when working with markdown. It’s useful when you use `mdast-util-from-markdown` to turn MDX JSX into a syntax tree and `mdast-util-to-markdown` to write MDX JSX back out from that tree.
Project status
- The source appears to be a maturing mdast utility that is no longer seeing frequent public updates: the most recent published update in the provided history is 3.2.0 on 2025-01-13, and there has been no corresponding published update after that (even though an upstream push occurred on 2025-11-19).
- Update cadence looks sporadic, with multiple years between changes in the 2023 to 2025 series (for example, 2.x in 2023, 3.0.0 in 2023, several 3.1.x updates in early 2024, and 3.2.0 in early 2025), and a gap of well over a year since the last known published update as of 2026-09-10.
AI summary generated
Recent updates
3.2.0
Release 3.2.0 adds positional information (line/column offsets) to `mdxJsxExpressionAttribute` nodes produced by `mdxJsxFromMarkdown`. The code changes also ensure `position.end` is populated for the attribute node, and updates tests accordingly.
Features3.1.3
Release 3.1.3 makes a small dependency cleanup, and applies several non-functional repository changes (docs formatting, workflow matrix tweak, and test comment). The release notes only mention removing an unused dependency, but the diff also includes multiple development dependency/version changes.
3.1.2
Release 3.1.2 contains fixes related to JSX indentation when JSX is nested inside lists and block quotes. The diff shows a change in the internal depth inference logic used during rendering/serialization, plus added roundtrip tests to cover nested JSX combined with those Markdown structures.
3.1.1
Release 3.1.1 is presented as a small change focused on improving the error message when an unclosed JSX tag appears after a previously closed JSX tag. The code changes indicate it also altered internal error-handling logic to use a tag stack, and added a regression test covering the crash/error behavior.
3.1.0
Release 3.1.0 adds positional information (start and end line/column/offset) to `mdxJsxAttribute` nodes produced by `mdxJsxFromMarkdown`. The code now tracks token positions while parsing attribute names and values, and patches `position.end` in exit handlers.
Features3.0.0
Release 3.0.0 is a major version bump for mdast-util-mdx-jsx. It updates the package to be ESM-export-map driven, drops older Node.js versions in favor of Node.js 16, and removes an internal type re-export file. The codebase also includes substantial typing refactors and multiple dependency major upgrades that are only partially reflected in the release notes.
Breaking2.1.4
Release 2.1.4 is a small patch release focused on serialization output formatting for MDX JSX elements. The stated change is fixing incorrect indentation on text elements when converting MDX JSX to Markdown.
2.1.3
Release 2.1.3 is a formatting-focused change labeled as a fix for indentation of MDX JSX attributes, expressions, and children. The release notes only mention a single fix commit, but the code diff shows a broader rework of the `mdxJsxToMarkdown` serialization logic and whitespace handling. Version also bumps and includes tooling/dependency updates.
2.1.2
Release 2.1.2 is a small fix release focused on TypeScript typing. It updates the package type declarations to correct an import for mdast node types.
2.1.1
Release 2.1.1 primarily adds and re-exports TypeScript types for MDX JSX elements, including additional HAST-specific node types. The code diff also shows a larger TypeScript declaration refactor (new top-level index.d.ts, internal type file re-exports) plus multiple packaging and tooling configuration changes.
SecurityFeatures