// ![code ++]\n \u003Cexample /> {/* [!code ++] */}\n \u003Cexample /> /* [!code ++] */\n \u003Cexample /> {\n // [!code ++]\n }\n \u003Cexample /> \u003C!-- [!code ++] -->\n \u003C/message>\n )\n}\n```\n\n\n\n### Expected behavior\n\nIt doesnt really work. If the second usage is intended then it probably shouldn't end with `{}`\n\n### System Info\n\n```Text\nSystem:\n OS: Windows 10 10.0.19045\n CPU: (4) x64 Intel(R) Core(TM) i5 CPU M 480 @ 2.67GHz\n Memory: 247.00 MB / 3.87 GB\n Binaries:\n Node: 23.11.0 - C:\\Program Files\\nodejs\\node.EXE\n npm: 10.5.2 - ~\\AppData\\Roaming\\npm\\npm.CMD\n pnpm: 9.1.3 - ~\\AppData\\Local\\pnpm\\pnpm.EXE\n bun: 1.1.4 - ~\\.bun\\bin\\bun.EXE\n Browsers:\n Edge: Chromium (135.0.3179.54)\n npmPackages:\n vitepress: ^1.6.3 => 1.6.3\n```\n\n### Additional context\n\n_No response_\n\n### Validations\n\n- [x] Check if you're on the [latest VitePress version](https://github.com/vuejs/vitepress/releases/latest).\n- [x] Follow our [Code of Conduct](https://vuejs.org/about/coc.html)\n- [x] Read the [docs](https://vitepress.dev).\n- [x] Check that there isn't already an issue that reports the same bug to avoid creating a duplicate.",[3099],{"name":3046,"color":3047},4776,"Can't use diff in Colored Diffs in JSX Code Blocks","2025-06-05T12:48:43Z","https://github.com/vuejs/vitepress/issues/4776",0.7263038,{"description":3106,"labels":3107,"number":3111,"owner":3024,"repository":3025,"state":3049,"title":3112,"updated_at":3113,"url":3114,"score":3115},"### Describe the bug\n\neg.\n```js\nexport default {\n data () {\n return {\n msg1: '1 Highlighted!' // [!code highlight]\n msg2: '2 Highlighted!' // [!code highlight]\n msg3: '3 Highlighted!' // [!code highlight]\n }\n }\n}\n```\n\n```js\nexport default {\n data () {\n return {\n // msg1: '1 Highlighted!' // [!code highlight]\n // msg2: '2 Highlighted!' // [!code highlight]\n // msg3: '3 Highlighted!' // [!code highlight]\n }\n }\n}\n```\n\n\u003Cimg width=\"742\" alt=\"Image\" src=\"https://github.com/user-attachments/assets/4ecd55e7-2975-4229-9474-e7d884d633e6\" />\n\n### Reproduction\n\n{\n \"devDependencies\": {\n \"vitepress\": \"2.0.0-alpha.2\"\n },\n \"scripts\": {\n \"docs:dev\": \"vitepress dev docs\",\n \"docs:build\": \"vitepress build docs\",\n \"docs:preview\": \"vitepress preview docs\"\n }\n}\n\n### Expected behavior\n\n在被注释的代码行后面添加 `// [!code highlight]` 高亮的位置错误。\n\n```js\nexport default {\n data () {\n return {\n // msg1: '1 Highlighted!' // [!code highlight]\n }\n }\n}\n```\n\n\u003Cimg width=\"705\" alt=\"Image\" src=\"https://github.com/user-attachments/assets/f1f5e3ce-3bc6-4939-b199-d9ac120ffab8\" />\n\n\n### System Info\n\n```Text\nChrome: 132.0.6834.160\n```\n\n### Additional context\n\n_No response_\n\n### Validations\n\n- [x] Check if you're on the [latest VitePress version](https://github.com/vuejs/vitepress/releases/latest).\n- [x] Follow our [Code of Conduct](https://vuejs.org/about/coc.html)\n- [x] Read the [docs](https://vitepress.dev).\n- [x] Check that there isn't already an issue that reports the same bug to avoid creating a duplicate.",[3108],{"name":3109,"color":3110},"upstream","BF29ED",4546,"代码高亮渲染异常","2025-02-23T04:43:37Z","https://github.com/vuejs/vitepress/issues/4546",0.7287113,{"description":3117,"labels":3118,"number":3122,"owner":3024,"repository":3025,"state":3049,"title":3123,"updated_at":3124,"url":3125,"score":3126},"### Is your feature request related to a problem? Please describe.\n\nI am rendering components in `.vp-doc` and my component's h2 gets style of VitePress which I don't want.\n\n### Describe the solution you'd like\n\nAdd class `not-vp-doc` to omit applying styles\n\n### Describe alternatives you've considered\n\nnone\n\n### Additional context\n\nI checked the source and found that all styles are written in CSS and it isn't quick to apply the `:not()` selector because there's list of `vp-doc` class usage and I might break something in hurry.\r\n\r\nI am in hurry hence creating this issue instead of PR.\r\n\r\nWill the team going to use SCSS in favor or refactor?\n\n### Validations\n\n- [X] Follow our [Code of Conduct](https://vuejs.org/about/coc.html)\n- [X] Read the [docs](https://vitepress.vuejs.org).\n- [X] Read the [Contributing Guidelines](https://github.com/vuejs/vitepress/blob/main/.github/contributing.md).\n- [X] Check that there isn't already an issue that asks for the same feature to avoid creating a duplicate.",[3119],{"name":3120,"color":3121},"duplicate","cfd3d7",808,"Allow excluding styles for tags like h2 in `vp-doc`","2023-01-21T14:34:01Z","https://github.com/vuejs/vitepress/issues/808",0.72943586,["Reactive",3128],{},["Set"],["ShallowReactive",3131],{"$fTRc1wZytZ_XrK4EfJfei_Sz-An4H4Yy6syhVxH_PVJc":-1,"$fsk9zM-021cExvc3gBDUibd5sMnqv2uwbyjaPCW-TWTE":-1},"/vuejs/vitepress/1556"]