mdast-util-from-markdown turns Markdown input into an mdast syntax tree. It tokenizes Markdown using micromark and then converts those tokens into nodes, useful if you want to work with Markdown syntax trees directly or integrate with the remark ecosystem.
Project status
- Actively maintained, most recently with updates in 2026 (last upstream push on 2026-06-03, and last published update 2.0.3 on 2026-02-21).
- Apparent update cadence is moderate but not steady, with a patch update in 2026, then a longer gap until 2024, suggesting maintenance around a stable major line (2.x) rather than frequent releases.
AI summary generated
Recent updates
2.0.3
Release 2.0.3 is a small patch release focused on correcting how `fromMarkdown` interprets its `encoding` and `options` arguments. It prevents `options` from being accidentally overwritten when `encoding` is `undefined`, and adds coverage via new tests.
2.0.2
Release 2.0.2 is described as a refactor of the published TypeScript typings, including switching internal typing documentation to use `@import` statements. The diff indicates this is primarily a types-only reorganization, with no obvious runtime parsing logic changes.
2.0.1
Release 2.0.1 includes a targeted fix for position end points when markdown text ends with a character reference, plus TypeScript declaration map support. The code changes show the fix is implemented by adding an explicit exit handler for `characterReference` tokens and adjusting internal stack handling during compilation.
2.0.0
mdast-util-from-markdown 2.0.0 is a major release aligned with micromark 4 and mdast type updates. It introduces new extension API expectations (raw `data` instead of `getData`/`setData`, and `enter`/`exit` now return `undefined`) and requires Node.js 16+.
Breaking1.3.1
Release 1.3.1 primarily updates TypeScript types related to micromark integration. The code diff is small and mostly removes TypeScript suppression comments, with one notable change that adds an `end` property to `listItem` nodes at construction time.
1.3.0
Release 1.3.0 primarily introduces a new TypeScript type, CompileData, intended to let extensions track custom state during compilation. The README and generated TypeScript entrypoint were updated to document this type and how to extend it.
Features1.2.1
Release 1.2.1 is presented as mostly documentation and refactoring, with a tsconfig.json update. The diff shows broader changes than the release notes suggest, including internal type-definition refactors that likely affect the generated public TypeScript declarations, plus build and CI/tooling updates.
1.2.0
Release 1.2.0 is described only as a webpack fix. The code diff, however, also includes a change in how named character references are decoded, along with swapping related dependencies.
1.1.1
Release 1.1.1 focuses on improving how mdast extensions handle errors when a token is exited and a different token type is currently open. The code change adds a way to provide a custom error handler specifically for exit-time mismatches, and it updates associated typings and tests.
Features1.1.0
Release 1.1.0 adds support for an error handler during token parsing. The diff shows the compiler now threads an error handler through token processing and routes certain “unclosed token” situations through that handler rather than always throwing immediately.
Features