Releases: rehypejs/rehype-highlight
Releases · rehypejs/rehype-highlight
7.0.1
Fix
- 8fbc0eb Fix to prefer
no-highlight
class overlanguage-*
class
Types
Docs
- a2d4dc3 Add HTML, CSS sections to readme
- 67eeb3a Add example, links to
rehype-highlight-code-lines
- 3c2d9e0 Add references to
rehype-starry-night
in docs
Full Changelog: 7.0.0...7.0.1
7.0.0
Change
- d72c765 Update
lowlight
migrate: if you passlanguages
, make sure the spread incommon
fromlowlight
:
.use(rehypeHighlight, {...common, ...otherLanguages})
- b057174 Update
@types/hast
,unified
, utilities, etc
migrate: update too - 72fe488 Change to require Node.js 16
migrate: update too - d2fc56d Change to use
exports
migrate: don’t use private APIs - dc3823d Remove
ignoreMissing
option, make it default
migrate: removeignoreMissing
, expect warnings on the file instead
Misc
Full Changelog: 6.0.0...7.0.0
6.0.0
5.0.2
5.0.1
5.0.0
- dfa5a4b Use ESM
-
Change:
// From CommonJS var rehypeHighlight = require('rehype-highlight') // To ESM import rehypeHighlight from 'rehype-highlight'
-
- c87da55 Update
lowlight
- This changes from having all languages registered by default (191) to only having common languages on (35). See https://github.com/wooorm/lowlight#syntaxes for which languages are on by default and which can be added.
This makesrehype-highlight
much faster and viable for use in browsers - This removes the light version of the plugin, because the default is now light
- Updating lowlight also updates
highlight.js
to v11, which improves results
- This changes from having all languages registered by default (191) to only having common languages on (35). See https://github.com/wooorm/lowlight#syntaxes for which languages are on by default and which can be added.
- fa5fcf4 Add JSDoc based types
- 84b5ce2 Fix code being dropped
4.1.0
4.0.1
4.0.0
- 48e6291 Update
unist-util-visit
(breaking, potentially, if you or your dependents use typescript) - e6c96cd Update
hast-util-to-text
(breaking, potentially, if you or your dependents use typescript) - eccfa24 Refactor prose