Describe the bug
Heya, I'm experiencing a weird issue with Code Blocks which started by the beginning of this year after updating to a newer version from 1.3.2.
The Highlighting used to work fine with an older version of vitepress but now it seems to be broken.
Result right now:


The affected file is located here: https://github.com/AzonInc/Doorman/blob/master/docs/en/guide/firmware/additions.md
Reproduction
Create a Code Block using this MD:
binary_sensor: // [!code ++] // [!code focus]
- platform: tc_bus // [!code ++] // [!code focus]
name: "Custom Command" // [!code ++] // [!code focus]
type: open_door // [!code ++] // [!code focus]
address: 0 // [!code ++] // [!code focus]
web_server: // [!code ++] // [!code focus]
sorting_group_id: sorting_group_listeners // [!code ++] // [!code focus]
Expected behavior
// [!code ++] // [!code focus] shouldn't be visible and also not randomly applied.
System Info
System:
OS: Windows 11 10.0.26120
CPU: (24) x64 AMD Ryzen 9 3900X 12-Core Processor
Memory: 9.89 GB / 31.91 GB
Binaries:
Node: 21.1.0 - C:\Program Files\nodejs\node.EXE
Yarn: 1.22.17 - ~\AppData\Roaming\npm\yarn.CMD
npm: 10.2.5 - C:\Program Files\nodejs\npm.CMD
pnpm: 6.11.0 - ~\AppData\Roaming\npm\pnpm.CMD
Browsers:
Chrome: 135.0.7049.116
Edge: Chromium (136.0.3240.29)
npmPackages:
vitepress: ^2.0.0-alpha.5 => 2.0.0-alpha.5
Additional context
Am I doing anything wrong or is it really broken?
Validations
Describe the bug
Heya, I'm experiencing a weird issue with Code Blocks which started by the beginning of this year after updating to a newer version from
1.3.2.The Highlighting used to work fine with an older version of vitepress but now it seems to be broken.
Result right now:


The affected file is located here: https://github.com/AzonInc/Doorman/blob/master/docs/en/guide/firmware/additions.md
Reproduction
Create a Code Block using this MD:
Expected behavior
// [!code ++] // [!code focus] shouldn't be visible and also not randomly applied.
System Info
Additional context
Am I doing anything wrong or is it really broken?
Validations