\n\n\u003Cimg width=\"376\" height=\"181\" alt=\"Image\" src=\"https://github.com/user-attachments/assets/2f33e227-2f78-4d2d-a90e-796eb5842643\" />\n\n### Reproduction\n\nUse the default tempalte \"no style\" and add a code block with line-numbers.\n\nTested version: \"vitepress\": \"^1.6.3\"\n\n### Expected behavior\n\nThe line numbers are next to the code.\n\n### System Info\n\n```Text\nSystem:\n OS: Windows 10 10.0.19045\n CPU: (16) x64 AMD Ryzen 7 5800X3D 8-Core Processor\n Memory: 11.37 GB / 31.92 GB\n Binaries:\n Node: 22.3.0 - C:\\Program Files\\nodejs\\node.EXE\n Yarn: 1.22.17 - ~\\AppData\\Roaming\\npm\\yarn.CMD\n npm: 9.8.1 - C:\\Program Files\\nodejs\\npm.CMD\n Browsers:\n Chrome: 138.0.7204.169\n Edge: Chromium (136.0.3240.92)\n Internet Explorer: 11.0.19041.5794\n npmPackages:\n vitepress: ^1.6.3 => 1.6.3\n```\n\n### Additional context\n\nTested on Chrome, Edge and Firefox - all have the same issue.\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.",[3179],{"name":3146,"color":3147},4865,"markdown :line-numbers","2025-07-29T22:58:24Z","https://github.com/vuejs/vitepress/issues/4865",0.69641906,{"description":3186,"labels":3187,"number":3189,"owner":3149,"repository":3150,"state":3151,"title":3190,"updated_at":3191,"url":3192,"score":3193},"### Describe the bug\n\nhttps://stackblitz.com/edit/github-zbjrsg-9ypk7f?file=index.md\r\n\r\nFollow document example, but show code out of region.\r\n\r\n\r\n\n\n### Reproduction\n\n.\n\n### Expected behavior\n\n.\n\n### System Info\n\n```shell\n.\n```\n\n\n### Additional context\n\n.\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] Check that there isn't already an issue that reports the same bug to avoid creating a duplicate.",[3188],{"name":3146,"color":3147},600,"snippet with region not work","2023-01-21T16:04:12Z","https://github.com/vuejs/vitepress/issues/600",0.69805485,{"description":3195,"labels":3196,"number":3198,"owner":3149,"repository":3150,"state":3151,"title":3199,"updated_at":3200,"url":3201,"score":3202},"### Describe the bug\n\nts Symbol error:\r\n\r\nPartial\u003CT>\n\n### Reproduction\n\nPartial\u003CT>\n\n### Expected behavior\n\nPartial\u003CT> is OK\n\n### System Info\n\n```sh\nSystem:\r\n OS: macOS 14.0\r\n CPU: (10) arm64 Apple M1 Max\r\n Memory: 334.34 MB / 32.00 GB\r\n Shell: 5.9 - /bin/zsh\r\n Binaries:\r\n Node: 19.5.0 - ~/.nvm/versions/node/v19.5.0/bin/node\r\n Yarn: 1.22.19 - /usr/local/bin/yarn\r\n npm: 9.4.1 - ~/.nvm/versions/node/v19.5.0/bin/npm\r\n pnpm: 8.6.12 - ~/.nvm/versions/node/v19.5.0/bin/pnpm\r\n Browsers:\r\n Chrome: 115.0.5790.170\r\n Safari: 17.0\r\n npmPackages:\r\n vitepress: 1.0.0-beta.7 => 1.0.0-beta.7\n```\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.",[3197],{"name":3146,"color":3147},2764,"Element is missing end tag","2023-08-17T00:04:09Z","https://github.com/vuejs/vitepress/issues/2764",0.70065,{"description":3204,"labels":3205,"number":3206,"owner":3149,"repository":3150,"state":3151,"title":3207,"updated_at":3208,"url":3209,"score":3210},"### Describe the bug\n\nThe line highlighting features are broke now in the official vitepress documentation: \u003Chttps://vitepress.vuejs.org/guide/markdown.html#line-highlighting-in-code-blocks>\n\n### Reproduction\n\nOpen \u003Chttps://vitepress.vuejs.org/guide/markdown.html#line-highlighting-in-code-blocks> and discover the lines are not highlighted:\r\n\r\n\r\n\r\nCan also be reproduced locally with:\r\n\r\n```shell\r\n$ mkdir vtprs && cd vtprs\r\n$ yarn init\r\n$ yarn add --dev vitepress\r\n```\r\n\r\nWrite some code blocks with lines highlighted in `docs/index.md`, like\r\n\u003Cpre>\r\n```toml{2}\r\n[highlight]\r\nnot_highlighted = true\r\npublic = false\r\n```\r\n\u003C/pre>\r\n\r\nrun `yarn vitepress dev docs` and discover that second line is not highlighted as expected.\n\n### Expected behavior\n\nCode lines are highlighted with minimal setup.\n\n### System Info\n\n```shell\nSystem:\r\n OS: Linux 5.14 Arch Linux\r\n CPU: (16) x64 Intel(R) Core(TM) i7-10700 CPU @ 2.90GHz\r\n Memory: 5.12 GB / 15.49 GB\r\n Container: Yes\r\n Shell: 5.8 - /usr/bin/zsh\r\n Binaries:\r\n Node: 14.17.4 - /sbin/node\r\n Yarn: 1.22.15 - /sbin/yarn\r\n npm: 7.24.2 - /sbin/npm\r\n Browsers:\r\n Chromium: 94.0.4606.71\r\n Firefox: 93.0\r\n npmPackages:\r\n vitepress: ^0.19.2 => 0.19.2\n```\n\n\n### Additional context\n\n_No response_\n\n### Validations\n\n- [X] Follow our [Code of Conduct](https://vuejs.org/coc)\n- [X] Read the [docs](https://vitepress.vuejs.org/).\n- [X] Check that there isn't already an issue that reports the same bug to avoid creating a duplicate.",[],408,"Line Highlighting in Code Blocks breaks in v0.19.2","2023-01-21T16:20:27Z","https://github.com/vuejs/vitepress/issues/408",0.70102537,{"description":3212,"labels":3213,"number":3214,"owner":3149,"repository":3150,"state":3151,"title":3215,"updated_at":3216,"url":3217,"score":3218},"### Is your feature request related to a problem? Please describe.\n\nI am trying to implement a global code group switch on the web page.\r\n\r\nFor instance, if somebody selects \"Python\" or \"PHP\", it changes all the code groups on the whole pages to \"Python\" or \"PHP\".\r\nThis would be the equivalent to https://github.com/padarom/vuepress-plugin-code-switcher for vitepress.\n\n### Describe the solution you'd like\n\nThe API could look like:\r\n\r\n```md\r\n\r\n## First group\r\n\r\n::: code-group:synchronized:group-id\r\n\r\n´´´shell [Shell]\r\nShell test #1\r\n´´´\r\n\r\n´´´python [Python]\r\nPython test #1\r\n´´´\r\n\r\n:::\r\n\r\n## Second group\r\n\r\n::: code-group:synchronized:group-id\r\n\r\n´´´shell [Shell]\r\nShell test #2\r\n´´´\r\n\r\n´´´python [Python]\r\nPython test #2\r\n´´´\r\n\r\n:::\r\n```\r\n\r\n- `::: code-group` standalone would not be synchronized\r\n- `::: code-group:synchronized` would be synchronized with all other groups with a default ID\r\n- `::: code-group:synchronized:group-id` would be synchronized with all other groups that matches the same ID\n\n### Describe alternatives you've considered\n\nA plugin to do this could also work, but it may definitely be part of the core features of vitepress.\n\n### Additional context\n\nThank you for this amazing project :heart: \n\n### Validations\n\n- [X] Follow our [Code of Conduct](https://vuejs.org/about/coc.html)\n- [X] Read the [docs](https://vitepress.dev).\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.",[],2773,"Feature request: change all group codes at once :tada: ","2023-08-18T00:04:11Z","https://github.com/vuejs/vitepress/issues/2773",0.70349514,{"description":3220,"labels":3221,"number":3223,"owner":3149,"repository":3150,"state":3151,"title":3224,"updated_at":3225,"url":3226,"score":3227},"### Describe the bug\n\nWhen I add a code block in VitePress and want to focus it using `// [!code focus]`, it doesn't work on some languages, Python, for example. I assume it doesn't work because it's a language whose comment syntax isn't `//`\n\n### Reproduction\n\n- Add a code block to a page\n- Set the syntax highligh to python \n- Add `// [!code focus]` to any line\n\n\n### Expected behavior\n\nThe line should be focused\n\n### System Info\n\n```Text\nSystem:\n OS: Windows 11 10.0.22631\n CPU: (12) x64 AMD Ryzen 5 7535HS with Radeon Graphics \n Memory: 1.10 GB / 13.35 GB\n Binaries:\n Node: 23.11.0 - C:\\Program Files\\nodejs\\node.EXE\n npm: 10.9.2 - C:\\Program Files\\nodejs\\npm.CMD\n Browsers:\n Edge: Chromium (136.0.3240.50)\n Internet Explorer: 11.0.22621.3527\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.",[3222],{"name":3146,"color":3147},4746,"Code focus doesn't work for some languages","2025-05-13T16:24:37Z","https://github.com/vuejs/vitepress/issues/4746",0.7048578,{"description":3229,"labels":3230,"number":3232,"owner":3149,"repository":3150,"state":3151,"title":3233,"updated_at":3234,"url":3235,"score":3236},"### Describe the bug\n\nI have the following snippet:\r\n\r\n```rs\r\nfn main() {\r\n // #region ipsum\r\n println!(\"Lorem ipsum\");\r\n // #endregion ipsum\r\n}\r\n```\r\n\r\nI am importing it with the syntax:\r\n\r\n```md\r\n\u003C\u003C\u003C@/snippets/lorem.rs#ipsum\r\n```\r\n\r\nThe rendered result:\r\n\r\n```rs\r\n println!(\"Lorem ipsum\");\r\n```\n\n### Reproduction\n\nhttps://stackblitz.com/edit/vite-skqr7n\n\n### Expected behavior\n\nExpected to see:\r\n\r\n```rs\r\nprintln!(\"Lorem ipsum\");\r\n```\r\n\r\nand not\r\n\r\n```rs\r\n println!(\"Lorem ipsum\");\r\n```\r\n\n\n### System Info\n\n```shell\nN/A\n```\n\n\n### Additional context\n\nI've almost created a PR with fix & tests.\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] Check that there isn't already an issue that reports the same bug to avoid creating a duplicate.",[3231],{"name":3146,"color":3147},1686,"`dedent` in Snippet Markdown Plugin doesn't work for a single-line region","2023-01-21T14:17:00Z","https://github.com/vuejs/vitepress/issues/1686",0.705601,["Reactive",3238],{},["Set"],["ShallowReactive",3241],{"$fTRc1wZytZ_XrK4EfJfei_Sz-An4H4Yy6syhVxH_PVJc":-1,"$f1A3uVATieCHBHpZ-Gpe4BWfD_vCLT480XGBqvbmPHsI":-1},"/vuejs/vitepress/2066"]