Releases: Microflash/rehype-starry-night
Releases · Microflash/rehype-starry-night
v8.0.1
Patched
- Upgrade to
@wooorm/starry-night@3.9.0 - Upgrade to
unist-util-visit@5.1.0
Full Changelog: v8.0.0...v8.0.1
v8.0.0
Added
- Option API:
plainTextoption which accepts an array of language names for which syntax highlighting is skipped - Option API:
allowMissingScopesallows you to show warnings when scopes are missing when set totrue. - Diff markers are now visible when you add inserted and deleted lines. Visible diff markers are useful when you're using this plugin to generate the content for non-browser agents. For example, an explicit marker can show up in an RSS reader helping your readers correctly identify a deleted or inserted line.
Removed
- Breaking Support for inline code highlighting
Changed
- Breaking Plugin API: Earlier plugin API was not very extensible and limited to what shipped out of box. New Plugin API allows you to parse your own metadata and use it to transform codeblock nodes, opening flexible customization possibilities with better performance, while still allowing previous behavior (if needed).
- Breaking Option API: Most important change in options is that plugins are now opt-in (instead of opt-out earlier). Additionally, instead of using all
starry-nightgrammars, only common grammars are used by default (for performance improvement). You can always import all grammars, if needed. - Breaking Option API:
classNamePrefixis renamed asnamespace.
Full Changelog: v7.4.0...v8.0.0
v7.4.0
v7.3.2
v7.3.1
v7.3.0
Patched
- Upgrade to
@wooorm/starry-night@3.7.0 - Upgrade to
hastscript@9.0.1
Also, switches from
vitestto Node.js test runner.
Full Changelog: v7.2.2...v7.3.0
v7.2.2
Patched
- RCE vulnerability in Vitest https://github.com/Microflash/rehype-starry-night/security/dependabot/5
Full Changelog: v7.2.1...v7.2.2
v7.2.1
v7.2.0
Changed
-
Language plugin now wraps the language in a
span- <div class="hl-language">css</div> + <div class="hl-language"><span>css</span></div>
Full Changelog: v7.1.1...v7.2.0
v7.1.1
Patched
- Upgrade to
@microflash/fenceparser@3.1.0 - Upgrade to
hast-util-to-string@3.0.1
Full Changelog: v7.1.0...v7.1.1