unstale

npm / hast-util-to-html

hast-util-to-html

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

4 breaking3 fixes and other

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

npx @unstale/cli init

@unstale/cli on npm

hast-util-to-html 97 changes

Breaking changes 4

  • Use characterReferences in place of options.entities.

    9.0.0release notes

  • The entities option was removed; use characterReferences instead.

    9.0.0release notes

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

    9.0.0release notes

  • Node.js 16 is now required to use the package.

    9.0.0release notes

Fixes and other changes 3

  • Text is no longer encoded in more raw text elements.

    9.0.7release notes

  • Fixes HTML handling in SVG for desc, foreignObject, and title.

    9.0.6release notes

  • Fixes omission of the p closing tag in custom elements.

    9.0.6release notes