unstale

npm / mdast-util-to-hast

mdast-util-to-hast

What changed in mdast-util-to-hast 11 to 13, from its official release notes, upgrade guides and advisories. Sources checked 2026-11-30.

17 breaking1 security2 new APIs and options1 behavior and defaults2 tooling3 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-hast 1320 changes

Breaking changes 13

  • The all helper was removed; custom handlers should use state.all.

    13.0.0release notes

  • complex-types.d.ts was removed; use the main module.

    13.0.0release notes

  • The package now uses exports; consumers should avoid private APIs.

    13.0.0release notes

  • Support for Footnote nodes was removed; use GFM, which does not have inline notes.

    13.0.0release notes

  • The H type was removed; use State.

    13.0.0release notes

  • Support for the ancient lang form on code nodes with spaces was removed.

    13.0.0release notes

  • The utility always returns a node; callers should expect an empty root instead of nothing.

    13.0.0release notes

  • Node.js 16 is now required.

    13.0.0release notes

  • The one helper was removed; custom handlers should use state.one.

    13.0.0release notes

  • Nodes passed through are now deep-cloned.

    13.0.0release notes

  • The function form of State was removed; custom handlers should create nodes themselves and use state.applyData if needed.

    13.0.0release notes

  • Definitions on state now use maps; custom handlers should expect maps.

    13.0.0release notes

  • Callers should expect undefined rather than null.

    13.0.0release notes

Security 1

New APIs and options 1

  • Supported data fields were added to mdast Data; pass correct values in node.data.

    13.0.0release notes

Behavior and default changes 1

  • Use the function form of footnoteBackLabel for internationalization.

    13.0.0release notes

Tooling 1

  • Smarter types are provided for passThrough; type mdast and hast nodes by extending the content interfaces.

    13.0.0release notes

Fixes and other changes 3

mdast-util-to-hast 122 changes

Breaking changes 1

New APIs and options 1

  • A new option lets developers configure footnotes to match how GitHub renders them.

    12.0.0release notes

mdast-util-to-hast 114 changes

Breaking changes 3

Tooling 1