npm / mdast-util-to-markdown
mdast-util-to-markdown
What changed in mdast-util-to-markdown 2, from its official release notes, upgrade guides and advisories. Sources checked 2026-10-18.
3 new APIs and options1 performance7 fixes and other
See which of these apply to your code, ranked, in your agent:
npx @unstale/cli initmdast-util-to-markdown 211 changes
New APIs and options 3
Unsafe patterns can now specify afterNode, allowing developers to configure this additional pattern property.
Unsafe patterns can now specify beforeNode, allowing developers to configure this additional pattern property.
Unsafe patterns can now specify unicode, allowing developers to configure this additional pattern property.
Performance 1
Fixes quadratic position lookup.
Fixes and other changes 7
Fixes handling of astral characters, such as emoji, around attention.
Fixes forming attention in complex cases.
Fixes escaping in autolinks.
Fixes encoding a break before attention.
Fixes handling around kinds of HTML.
Fixes unnecessary escaping of intraword underscores.
Fixes encoding line endings and blank lines in paragraphs.