Skip to content

Releases: Microflash/rehype-starry-night

v8.0.1

23 Jan 13:24

Choose a tag to compare

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

13 Dec 19:33

Choose a tag to compare

Added

  • Option API: plainText option which accepts an array of language names for which syntax highlighting is skipped
  • Option API: allowMissingScopes allows you to show warnings when scopes are missing when set to true.
  • 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-night grammars, only common grammars are used by default (for performance improvement). You can always import all grammars, if needed.
  • Breaking Option API: classNamePrefix is renamed as namespace.

Full Changelog: v7.4.0...v8.0.0

v7.4.0

12 Oct 10:34

Choose a tag to compare

Patched

  • Upgrade to @microflash/fenceparser@4.0.0

Full Changelog: v7.3.2...v7.4.0

v7.3.2

06 Jun 17:03

Choose a tag to compare

Patched

  • Upgrade to @wooorm/starry-night@3.8.0

Full Changelog: v7.3.1...v7.3.2

v7.3.1

04 Apr 08:38

Choose a tag to compare

Patched

  • Upgrade to @microflash/fenceparser@3.1.1

Full Changelog: v7.3.0...v7.3.1

v7.3.0

03 Apr 17:31

Choose a tag to compare

Patched

  • Upgrade to @wooorm/starry-night@3.7.0
  • Upgrade to hastscript@9.0.1

Also, switches from vitest to Node.js test runner.

Full Changelog: v7.2.2...v7.3.0

v7.2.2

07 Feb 15:44

Choose a tag to compare

v7.2.1

05 Jan 07:32

Choose a tag to compare

Patched

  • Upgrade to @wooorm/starry-night@3.6.0

Full Changelog: v7.2.0...v7.2.1

v7.2.0

23 Dec 17:07

Choose a tag to compare

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

28 Sep 18:21

Choose a tag to compare

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