# What changed in rehype-pretty-code

> 6 changes in rehype-pretty-code 0.14 from its official release notes, upgrade guides and advisories. Each one cited. Sources checked 2026-10-20. HTML: https://unstale.sh/npm/rehype-pretty-code/

To see which of these apply to a repository, run `npx @unstale/cli init` in it.

## rehype-pretty-code 0.14

### Behavior and default changes

- Adds support for Shiki 4. (0.14.3) — [release notes](https://github.com/rehype-pretty/rehype-pretty-code/releases/tag/rehype-pretty-code%400.14.3)

### Fixes and other changes

- Character-highlight ranges no longer leak across patterns, so a later pattern does not inherit a previous pattern's range. (0.14.5) — [release notes](https://github.com/rehype-pretty/rehype-pretty-code/releases/tag/rehype-pretty-code%400.14.5)
- Partial highlights inside a transformer-generated element preserve the surrounding semantic element instead of cloning it. (0.14.5) — [release notes](https://github.com/rehype-pretty/rehype-pretty-code/releases/tag/rehype-pretty-code%400.14.5)
- Range-ignored occurrences no longer consume the whole token; excluded occurrences are counted without changing the token tree, preserving unhighlighted markup. (0.14.5) — [release notes](https://github.com/rehype-pretty/rehype-pretty-code/releases/tag/rehype-pretty-code%400.14.5)
- Detects showLineNumbers wherever it appears in the meta string, while ignoring it when it is part of a character highlight. (0.14.5) — [release notes](https://github.com/rehype-pretty/rehype-pretty-code/releases/tag/rehype-pretty-code%400.14.5)
- Prevents an infinite loop when a pattern matches text spanning multiple syntax tokens and occurs more than once on the same line. (0.14.4) — [release notes](https://github.com/rehype-pretty/rehype-pretty-code/releases/tag/rehype-pretty-code%400.14.4)
