Skip to content

Update dependency rehype-highlight to v7 - #1168

Open
renovate[bot] wants to merge 1 commit into
masterfrom
renovate/rehype-highlight-7.x
Open

renovate[bot] wants to merge 1 commit into
masterfrom
renovate/rehype-highlight-7.x

Conversation

@renovate

@renovate renovate Bot commented May 19, 2026

Copy link
Copy Markdown
Contributor

This PR contains the following updates:

Package Change Age Confidence
rehype-highlight ^4.1.0 → ^7.0.0 age confidence

Release Notes

rehypejs/rehype-highlight (rehype-highlight)

v7.0.2

Compare Source

Fix
  • 5c3b277 Fix multiple codes in a pre

Full Changelog: rehypejs/rehype-highlight@7.0.1...7.0.2

v7.0.1

Compare Source

Fix
  • 8fbc0eb Fix to prefer no-highlight class over language-* 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: rehypejs/rehype-highlight@7.0.0...7.0.1

v7.0.0

Compare Source

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: rehypejs/rehype-highlight@6.0.0...7.0.0

v6.0.0

Compare Source

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

v5.0.2

Compare Source

Full Changelog: rehypejs/rehype-highlight@5.0.1...5.0.2

v5.0.1

Compare Source

Full Changelog: rehypejs/rehype-highlight@5.0.0...5.0.1

v5.0.0

Compare Source

  • 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

Configuration

📅 Schedule: (UTC)

  • Branch creation
    • At any time (no schedule defined)
  • Automerge
    • At any time (no schedule defined)

🚦 Automerge: Disabled by config. Please merge this manually once you are satisfied.

♻ Rebasing: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox.

🔕 Ignore: Close this PR and you won't be reminded about this update again.


  • If you want to rebase/retry this PR, check this box

This PR was generated by Mend Renovate. View the repository job log.

@renovate
renovate Bot force-pushed the renovate/rehype-highlight-7.x branch from 2cc7ee5 to 5d890d0 Compare May 19, 2026 22:26
@renovate
renovate Bot force-pushed the renovate/rehype-highlight-7.x branch from 5d890d0 to 5890ce2 Compare May 28, 2026 19:01
@renovate
renovate Bot force-pushed the renovate/rehype-highlight-7.x branch from 5890ce2 to 53b7070 Compare July 12, 2026 11:19
@renovate
renovate Bot force-pushed the renovate/rehype-highlight-7.x branch from 53b7070 to f5d178c Compare August 26, 2026 21:36
@renovate
renovate Bot force-pushed the renovate/rehype-highlight-7.x branch from f5d178c to 7f4a199 Compare September 7, 2026 22:44
@renovate
renovate Bot force-pushed the renovate/rehype-highlight-7.x branch from 7f4a199 to 97983a1 Compare September 24, 2026 22:38

This branch has not been deployed

No deployments
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

0 participants