All notable changes to this project will be documented in this file.
The format is based on Keep a Changelog, and this project adheres to Semantic Versioning.
7.2.1 - 2025-01-05
- Upgrade to
@wooorm/starry-night@3.6.0
7.2.0 - 2024-12-23
-
Language plugin now wraps the language in a
span
- <div class="hl-language">css</div> + <div class="hl-language"><span>css</span></div>
7.1.1 - 2024-09-28
- Upgrade to
@microflash/fenceparser@3.1.0
- Upgrade to
hast-util-to-string@3.0.1
7.1.0 - 2024-09-02
- Upgrade to
@wooorm/starry-night@3.5.0
7.0.0 - 2024-08-02
- Breaking
wrap
option to soft wrap the entire codeblock by setting it totrue
6.1.0 - 2024-07-27
- Rolls back breaking changes in v6.0.0
- Improve diff decorations
6.0.0 - 2024-07-27
- Plugin to soft wrap lines with
wrap
property
- Breaking
wrap
option to soft wrap the entire codeblock by setting it totrue
5.0.0 - 2024-07-07
- Annotate added and removed lines
- Conditionally wrap lines
- Annotate lines as command-line output
- Plugin API to enhance header and lines
- Option to disable or override default plugins
- Imports for default plugins
- CSS properties to control more theming for diffs, prompt, and outline
- Graceful fallback behavior when language info is unavailable
- Breaking Rename
caption
property totitle
for codeblock titles - Breaking Rename
--hl-code-highlight
to--hl-line-highlight-background-color
- JavaScript based line-number padding; it is now CSS-based
- Breaking Header extensions in favor of new title and language plugins
4.1.0 - 2024-06-10
- Upgrade to
@wooorm/starry-night@3.4.0
4.0.0 - 2024-04-30
- More concise syntax to inject language information in the inline
code
elements usingremark-inline-code-lang
plugin - Customizable className prefix for both
rehype-starry-night
andrehype-starry-night-inline
- Customizable marker to inject language information for inline
code
element usingremark-inline-code-lang
plugin
- Breaking Upgrade to
fenceparser@3.0.0
which removed the support for specifying the ranges using hyphen (for example,1-5
is now invalid, you should use1..5
instead) - Update docs with examples
- Breaking
remark-code-directive
plugin is removed in favor ofremark-inline-code-lang
which offers a more concise syntax to inject language information in the inlinecode
elements. It also does not requireremark-directive
as a dependency.
3.6.0 - 2024-04-13
- Upgrade to
@wooorm/starry-night@3.3.0
3.5.0 - 2024-01-07
- Support highlighting inline
code
elements through a custom directive
3.2.0 - 2024-01-06
- Upgrade to
@wooorm/starry-night@3.2.0
3.1.0 - 2023-12-05
- Upgrade to
@wooorm/starry-night@3.1.0
3.0.0 - 2023-09-24
- Header extension API to customize codeblock headers
- Breaking Drops support for Node.js versions below 16 (since the underlying dependencies now require Node.js 16)
- Upgrade to
@wooorm/starry-night@3.0.0
- Upgrade to
hast-util-to-string@3.0.0
- Upgrade to
unist-util-visit@5.0.0
2.1.1 - 2023-05-21
- Refactor
index.css
to make it customizable by people using it directly - Update docs with an example of supporting light and dark themes
2.1.0 - 2023-05-21
- CSS to style header and gutter of codefences
- Sample images for various usecases
- Regression tests
- GitHub Actions to run regression automatically
2.0.0 - 2023-05-21
- Improve line number detection
- Pad line numbers
1.0.0 - 2022-12-24
Syntax highlight plugin with support for following additional features
- line numbers
- line highlights
- support for prompt
- captions and language information