mdast-util-to-markdown is a low-level utility that converts an mdast syntax tree into serialized markdown text. It is useful when you want to handle syntax trees directly, or build custom markdown serialization by pairing it with other mdast utilities and handlers.
Project status
- Maintenance status: The upstream repo has a recent push (2026-04-24), and the last published package updates (2.1.2 on 2024-11-04, 2.1.1 on 2024-10-29), which suggests active maintenance rather than a frozen state.
- Update cadence (observed): There was a rapid pair of updates in late 2024 (2.1.1 and 2.1.2 within about a week), followed by a longer gap since 2.1.0 in 2023-07-16, so the apparent cadence is irregular.
AI summary generated Today
Recent updates
2.1.2
11/4/2024Release 2.1.2 is a small patch release focused on fixing a crash in more complex content involving attention. The code change guards against reading the last item from an empty results array in the container phrasing utility.
2.1.1
10/29/2024Release 2.1.1 focuses on fixing “attention” roundtripping (emphasis and strong) by encoding the surrounding characters so the produced markdown keeps parsing the same emphasis boundaries. In addition, it performs a TypeScript typing refactor (switching to `@import`s, reorganizing declaration files, and adding declaration maps).
2.1.0
7/16/2023Release 2.1.0 introduces a new `compilePattern` helper that is made available on the serialization `state`, and updates internal code paths to use it for compiling unsafe patterns. It also includes a small set of tooling dependency bumps (format/lint related).
Features