unstale

npm / mdast-util-to-markdown

mdast-util-to-markdown

What changed in mdast-util-to-markdown 1 to 2, from its official release notes, upgrade guides and advisories. Sources checked 2026-11-27.

9 breaking3 new APIs and options4 performance1 tooling15 fixes and other

See which of these apply to your code, ranked, in your agent:

npx @unstale/cli init

@unstale/cli on npm

mdast-util-to-markdown 230 changes

Breaking changes 8

  • The option was removed; other bullets are now always used.

    2.0.0release notes

  • The Context type alias was removed; use State instead.

    2.0.0release notes

  • The package now uses an exports map; consumers should not use private APIs.

    2.0.0release notes

  • The default changed to true, so fenced code is used unless you explicitly set it to false.

    2.0.0release notes

  • The default changed from 'tab' (size) to 'one'.

    2.0.0release notes

  • The ancient undocumented support for the numeric value 1 was removed; use 'one' instead.

    2.0.0release notes

  • Node.js 16 is now required.

    2.0.0release notes

  • The SafeOptions type alias was removed; use Info instead.

    2.0.0release notes

New APIs and options 3

  • Unsafe patterns can now specify afterNode, allowing developers to configure this additional pattern property.

    2.2.0release notes

  • Unsafe patterns can now specify beforeNode, allowing developers to configure this additional pattern property.

    2.2.0release notes

  • Unsafe patterns can now specify unicode, allowing developers to configure this additional pattern property.

    2.2.0release notes

Performance 4

Fixes and other changes 15

  • Empty attention is dropped.

    2.2.3release notes

  • Fixes handling of empty after and before values in unsafe patterns.

    2.2.2release notes

  • Fixed escaping ampersands in info, meta, and related output.

    2.2.1release notes

  • Fixed escaping after an unsafe character.

    2.2.1release notes

  • Fixed edge cases around escaping and encoding.

    2.2.1release notes

  • Fixed links whose text would otherwise form definitions.

    2.2.1release notes

  • Fixed joining impossible things in tight list items.

    2.2.1release notes

  • Fixed recursion in wrapped attention when there is no attention.

    2.2.1release notes

  • Fixes handling of astral characters, such as emoji, around attention.

    2.1.3release notes

  • Fixes forming attention in complex cases.

    2.1.3release notes

  • Fixes escaping in autolinks.

    2.1.3release notes

  • Fixes encoding a break before attention.

    2.1.3release notes

  • Fixes handling around kinds of HTML.

    2.1.3release notes

  • Fixes unnecessary escaping of intraword underscores.

    2.1.3release notes

  • Fixes encoding line endings and blank lines in paragraphs.

    2.1.3release notes

mdast-util-to-markdown 12 changes

Breaking changes 1

  • The package switches to ESM, affecting how developers import and use it.

    1.0.0release notes

Tooling 1

  • Types are added using JSDoc, allowing developers to use type information for the package.

    1.0.0release notes