Skip to content

Releases: rehypejs/rehype-highlight

7.0.0

05 Sep 10:11
f7a0e02
Compare
Choose a tag to compare

Change

  • d72c765 Update lowlight
    migrate: if you pass languages, make sure the spread in common from lowlight:
    .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: remove ignoreMissing, expect warnings on the file instead

Misc

Full Changelog: 6.0.0...7.0.0

6.0.0

12 Oct 17:26
56a02a5
Compare
Choose a tag to compare
  • 2c5a4ec Remove detection by default
    breaking: see commit message for migration
  • 9c42989 Fix to throw error on file

5.0.2

27 Dec 18:31
0ccf600
Compare
Choose a tag to compare

Full Changelog: 5.0.1...5.0.2

5.0.1

02 Dec 17:43
1730769
Compare
Choose a tag to compare

Full Changelog: 5.0.0...5.0.1

5.0.0

02 Aug 09:38
9a51e10
Compare
Choose a tag to compare
  • dfa5a4b Use ESM
    • Change:

      // From CommonJS
      var rehypeHighlight = require('rehype-highlight')
      
      // To ESM
      import rehypeHighlight from 'rehype-highlight'

      Learn more about ESM in this guide

  • 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 makes rehype-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
  • fa5fcf4 Add JSDoc based types
  • 84b5ce2 Fix code being dropped

4.1.0

19 Feb 13:49
e154763
Compare
Choose a tag to compare

4.0.1

16 Feb 07:44
c244fde
Compare
Choose a tag to compare
  • 0e11f47 Fix removal of code not in autodetect subset
  • b8d70d6 Refactor to improve bundle size

4.0.0

19 Mar 17:12
00fe5b6
Compare
Choose a tag to compare

3.1.0

13 Nov 15:16
ebfdd12
Compare
Choose a tag to compare
  • a20c28a Add support for registering languages
  • b2f7f6a Add funding field to package.json
  • a1d176a Add notes on security

3.0.0

03 Jun 17:02
ecff752
Compare
Choose a tag to compare
  • 734349c Add better support for pre white-space in code