Back to Explore

syntax-tree/mdast-util-mdx-jsx

GitHub
2 watchersOpen source

Last release:

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 syntax-tree/mdast-util-mdx-jsx appears maintained, with a recent upstream push on 2025-11-19 and the most recent published update shown as 3.2.0 on 2025-01-13 (no evidence here of a shutdown or long-term abandonment).
  • Apparent update cadence is moderate rather than frequent, with updates clustered in 2023-07 (3.0.0), 2024 (3.1.0 to 3.1.3 from Feb through Aug), and then a next update in Jan 2025 (3.2.0), followed by no additional published updates in the provided list since 3.2.0.

AI summary generated

AI-generated from public sources. May be inaccurate. Report

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.

    Features
  • 3.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.

    Features
  • 3.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.

    Breaking
  • 2.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