Skip to content

6.0.0

Compare
Choose a tag to compare
@wooorm wooorm released this 17 Jul 21:03
· 211 commits to main since this release
SVG support 馃搳

This update adds long-awaited SVG support to the rehype ecosystem. A super welcome feature, that鈥檚 been cooking up since 2016. After much thought, I think what we came up with is a rather easy-to-use implementation.

Note that rehype is not an XML parser. It still focusses on HTML. But this change adds proper support to SVG embedded in HTML, and SVG fragments.

See wooorm/property-information#6 for more info.

Parse Errors

Additionally, rehype-parse can now emit parse errors if emitParseErrors: true.

rehype-parse
  • d70d161 add space option
  • 02d383b update hast-util-from-parse5
  • 0efaa14 fix support for <noscript> elements
  • c20f360 add support for emitting parse errors
  • 3f1ef5a update parse5
rehype-stringify
rehype

This includes the new rehype-parse and rehype-stringify

rehype-cli

This includes the new rehype

Plugins
  • 61a5ff2 Add rehype-add-classes to list of plugins
  • 9490807 Add rehype-dom to list of plugins
  • afe9ce0 Add rehype-prism to list of plugins
Other changes
  • e756e50 Remove engines restrictions from packages
  • e9f44d1 Refactor code-style