plugin to highlight code blocks
lowlight
migrate: if you pass languages
, make sure the spread in common
from lowlight
:
.use(rehypeHighlight, {...common, ...otherLanguages})
@types/hast
, unified
, utilities, etc
migrate: update tooexports
migrate: don’t use private APIsignoreMissing
option, make it default
migrate: remove ignoreMissing
, expect warnings on the file insteadFull Changelog: https://github.com/rehypejs/rehype-highlight/compare/6.0.0...7.0.0
Full Changelog: https://github.com/rehypejs/rehype-highlight/compare/5.0.1...5.0.2
Full Changelog: https://github.com/rehypejs/rehype-highlight/compare/5.0.0...5.0.1
Change:
// From CommonJS
var rehypeHighlight = require('rehype-highlight')
// To ESM
import rehypeHighlight from 'rehype-highlight'
lowlight
rehype-highlight
much faster and viable for use in browsershighlight.js
to v11, which improves resultsunist-util-visit
(breaking, potentially, if you or your dependents use typescript)hast-util-to-text
(breaking, potentially, if you or your dependents use typescript)funding
field to package.json