Rehype Highlight Versions Save

plugin to highlight code blocks

7.0.0

8 months ago

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: https://github.com/rehypejs/rehype-highlight/compare/6.0.0...7.0.0

6.0.0

1 year ago
  • 2c5a4ec Remove detection by default breaking: see commit message for migration
  • 9c42989 Fix to throw error on file

5.0.1

2 years ago

5.0.0

2 years ago
  • 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

3 years ago
  • bf464d7 Add light plugin

4.0.1

3 years ago
  • 0e11f47 Fix removal of code not in autodetect subset
  • b8d70d6 Refactor to improve bundle size

4.0.0

4 years ago
  • 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

3.1.0

4 years ago
  • a20c28a Add support for registering languages
  • b2f7f6a Add funding field to package.json
  • a1d176a Add notes on security

3.0.0

4 years ago
  • 734349c Add better support for pre white-space in code