Back to Explore

syntax-tree/mdast-util-mdx

GitHub
1 watchersOpen source

Last release: 7/12/2023

This package provides mdast extensions that parse and serialize MDX syntax in Markdown, including ESM (import/export), JSX, and expressions. It is useful when you are already using mdast-util-from-markdown and mdast-util-to-markdown and want MDX support in the mdast syntax tree.

Project status

  • The repository appears to be in maintenance mode, with the last recorded upstream push on 2024-02-10, and the last update shown for this source being 3.0.0 in 2023-07-12.
  • There is no evidence of frequent updates, with a gap of roughly 1.5 years between the last shown updates (2.0.1 in 2023-02-03) and 3.0.0 in 2023-07-12, and a larger gap to prior updates.

AI summary generated Today

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

Recent updates

  • 3.0.0

    7/12/2023

    mdast-util-mdx v3.0.0 is published as an ESM-only package with updated type exports and an updated build/entry structure. The release notes mention requiring Node.js 16, updating mdast-related types/utilities, and switching to package.json exports, but the code diff also shows major dependency bumps and some runtime-relevant invocation changes.

    Breaking
  • 2.0.1

    2/3/2023

    Release 2.0.1 is primarily documentation and test work, plus a tsconfig adjustment. The actual library code change in index.js appears to be documentation/JSDoc only, with no runtime logic changes visible in the provided diff.

  • 2.0.0

    1/31/2022

    mdast-util-mdx v2.0.0 changes its public exports, so callers now invoke `mdxFromMarkdown()` and `mdxToMarkdown(options?)` to obtain the `mdast-util-from-markdown` and `mdast-util-to-markdown` extensions. It also updates `mdast-util-mdx-jsx` and threads “formatting options” through to the JSX serializer.

    BreakingFeatures