\n\n### Expected behavior\n\nI hope to use SVG and other methods instead of using masks to display icons, which can avoid frequent redrawing\n\n### System Info\n\n```Text\n\"vitepress\": \"^1.6.4\",\n```\n\n### Additional context\n\n\u003Cimg width=\"2559\" height=\"1042\" alt=\"Image\" src=\"https://github.com/user-attachments/assets/39db5990-f3ee-47bb-8bcf-49272a1918f4\" />\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.",[3162],{"name":3146,"color":3147},4917,"Bug: Frequent triggering of redrawing of navigation bar icons","2025-08-21T09:14:41Z","https://github.com/vuejs/vitepress/issues/4917",0.6417629,{"description":3169,"labels":3170,"number":3172,"owner":3152,"repository":3153,"state":3154,"title":3173,"updated_at":3174,"url":3175,"score":3176},"### Describe the bug\n\n\n\n\n\nI accidentally used AI to generate a text of an md, and found that there was a text overflow problem\n\n### Reproduction\n\nAs described above\n\n### Expected behavior\n\nThe text should not overflow\n\n### System Info\n\n```Text\ndefault config 、edge\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.",[3171],{"name":3146,"color":3147},4798,"Rendering or parsing issues with Markdown","2025-06-21T09:57:36Z","https://github.com/vuejs/vitepress/issues/4798",0.65121126,{"description":3178,"labels":3179,"number":3181,"owner":3152,"repository":3153,"state":3182,"title":3183,"updated_at":3184,"url":3185,"score":3186},"### Describe the bug\n\n\r\n\r\n打包报错css问题,css没有任何问题,theme里全局引入组件库的,版本\"vitepress\": \"1.0.0-beta.1\"\n\n### Reproduction\n\nv \"vitepress\": \"1.0.0-beta.1\"\n\n### Expected behavior\n\n正常打包\n\n### System Info\n\n```sh\nnpm run build\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.",[3180],{"name":3146,"color":3147},2439,"closed","打包报错Unexpected token '.' 问题","2023-06-08T00:04:08Z","https://github.com/vuejs/vitepress/issues/2439",0.6185398,{"description":3188,"labels":3189,"number":3191,"owner":3152,"repository":3153,"state":3182,"title":3192,"updated_at":3193,"url":3194,"score":3195},"### Describe the bug\n\nHover state on link in `.vp-doc` is always matched, seems `:hover` is being truncated.\r\n\r\n\r\nCopy button in code block is also messed up.\r\n\r\n\r\n\r\nTable style messed up as well.\r\n\r\nI guess there's a lot more...\n\n### Reproduction\n\nIn `config.ts`:\r\n```ts\r\nexport default defineConfig({\r\n vite: {\r\n css: {\r\n postcss: {\r\n plugins: [\r\n postcssIsolateStyles({\r\n includeFiles: [/vp-doc\\.css/]\r\n }),\r\n ],\r\n },\r\n }\r\n})\r\n```\r\n\r\nI would write one if required, but since my above example is pretty easy to reproduce, I'll leave it blank here.\n\n### Expected behavior\n\nStyle not messed up\r\n\r\n (NOTE: it's working properly if I use `postcss-prefix-selector` straight away instead of using the one from vitepress package)\n\n### System Info\n\n```sh\nSystem:\r\n OS: Windows 10 10.0.19045\r\n CPU: (16) x64 11th Gen Intel(R) Core(TM) i9-11900K @ 3.50GHz\r\n Memory: 38.35 GB / 63.84 GB\r\n Binaries:\r\n Node: 18.16.0 - C:\\NodeJS\\node.EXE\r\n Yarn: 1.22.19 - C:\\NodeJS\\yarn.CMD\r\n npm: 9.8.1 - C:\\NodeJS\\npm.CMD\r\n pnpm: 8.7.0 - C:\\NodeJS\\pnpm.CMD\r\n Browsers:\r\n Edge: Spartan (44.19041.1266.0), Chromium (116.0.1938.62)\r\n Internet Explorer: 11.0.19041.1566\r\n npmPackages:\r\n vitepress: ^1.0.0-rc.9 => 1.0.0-rc.9\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.",[3190],{"name":3146,"color":3147},2868,"`postcssIsolateStyles` mess up original styles","2023-09-05T00:04:08Z","https://github.com/vuejs/vitepress/issues/2868",0.6242936,{"description":3197,"labels":3198,"number":3200,"owner":3152,"repository":3153,"state":3182,"title":3201,"updated_at":3202,"url":3203,"score":3204},"### Describe the bug\n\n点了没反应\n\n### Reproduction\n\n?\n\n### Expected behavior\n\n跳转啊\n\n### System Info\n\n```sh\nwin10\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.",[3199],{"name":3146,"color":3147},2408,"链接点不了了,新版","2023-06-02T00:04:17Z","https://github.com/vuejs/vitepress/issues/2408",0.6265269,{"description":3206,"labels":3207,"number":3208,"owner":3152,"repository":3153,"state":3182,"title":3209,"updated_at":3210,"url":3211,"score":3212},"### Describe the bug\r\n\r\n不支持行内这种**`XXX`**高亮加加粗\r\n\r\n### Reproduction\r\n\r\n不支持:aaa**`XXX`**bbb\r\n支持:aaa **`XXX`** bbb (**和其他文本之间需要加空格)\r\n\r\n### Expected behavior\r\n\r\nnull\r\n\r\n### System Info\r\n\r\n```Text\r\nnull\r\n```\r\n\r\n\r\n### Additional context\r\n\r\n_No response_\r\n\r\n### Validations\r\n\r\n- [X] Check if you're on the [latest VitePress version](https://github.com/vuejs/vitepress/releases/latest).\r\n- [X] Follow our [Code of Conduct](https://vuejs.org/about/coc.html)\r\n- [X] Read the [docs](https://vitepress.dev).\r\n- [X] Check that there isn't already an issue that reports the same bug to avoid creating a duplicate.",[],3762,"不支持行内这种**`XXX`**高亮加加粗","2024-04-28T12:25:05Z","https://github.com/vuejs/vitepress/issues/3762",0.62884563,{"description":3214,"labels":3215,"number":3217,"owner":3152,"repository":3153,"state":3182,"title":3218,"updated_at":3219,"url":3220,"score":3221},"### Describe the bug\n\n标题: 开发服务器模式下 Chrome 浏览器视口宽度计算错误\r\n\r\n## 问题描述\r\n在使用 VitePress 开发模式(`vitepress dev`)时,浏览器视口宽度被错误计算。相同的项目在预览/服务模式(`vitepress serve`)下却能正常工作。\r\n\r\n\r\n\r\n\r\n\r\n\n\n### Reproduction\n\n### 复现步骤\r\n1. 创建一个新的 VitePress 项目\r\n2. 运行 `vitepress dev`\r\n3. 打开 Chrome 开发者工具\r\n4. 在控制台检查 `window.innerWidth`\r\n5. 在不同的浏览器标签页之间切换\n\n### Expected behavior\n\n### 预期行为\r\n- 视口宽度应该与实际浏览器窗口宽度相匹配\r\n- `window.innerWidth` 应返回正确的浏览器窗口宽度(例如:在 1440px 宽的窗口中应返回 1440px)\r\n### 实际行为\r\n- 视口宽度明显小于实际窗口(约为 341px)\r\n- 即使在 Chrome 窗口大小为 1024x768 或更大时也会出现此问题\r\n- 同样的页面在不同的浏览器标签页中显示正确的宽度(1440px)\r\n- 使用 `vitepress serve` 运行时不存在此问题\r\n\n\n### System Info\n\n```Text\n### 环境信息\r\n- VitePress 版本:[1.1.4]\r\n- Chrome 版本:[131.0.6778.86(正式版本)]\r\n- 操作系统:[win10]\n```\n\n\n### Additional context\n\n### 补充说明\r\n- 此问题仅在开发模式下出现\r\n- 此问题影响整个布局,因为所有元素都使用了错误的宽度进行渲染\r\n- 在浏览器标签页之间切换时,相同窗口大小会显示不同的 `window.innerWidth` 值\r\n- 使用Edge、fifefox测试的时候是正常的,下面有对比图\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.",[3216],{"name":3146,"color":3147},4406,"开发服务器模式下 Chrome 浏览器视口宽度计算错误","2025-01-02T04:43:06Z","https://github.com/vuejs/vitepress/issues/4406",0.6320758,{"description":3223,"labels":3224,"number":3228,"owner":3152,"repository":3153,"state":3182,"title":3229,"updated_at":3230,"url":3231,"score":3232},"### Describe the bug\n\n使用官方文档的部署脚本成功部署到Github Pages之后,此时如果配置使用自定义域名的话,访问时样式会丢失\n\n### Reproduction\n\n1. 博客目录结构如下所示:\u003Cbr />\r\n2. 配置文件如下所示:\u003Cbr /> \n\n### Expected behavior\n\n使用 Github 自带的 https://xihuanxiaorang.github.io/docs/ 访问就没有任何问题,如果是使用自定义域名 https://docs.xiaorang.fun/ 的话,样式就会丢失\n\n### System Info\n\n```Text\nSystem:\r\n OS: Windows 10 10.0.19045\r\n CPU: (4) x64 Intel(R) Core(TM) i5-5200U CPU @ 2.20GHz\r\n Memory: 659.73 MB / 3.92 GB\r\n Binaries:\r\n Node: 20.11.0 - E:\\nodejs\\node.EXE\r\n Yarn: 1.22.21 - E:\\nodejs\\node_global\\yarn.CMD\r\n npm: 10.2.4 - E:\\nodejs\\npm.CMD\r\n pnpm: 8.14.3 - E:\\nodejs\\node_global\\pnpm.CMD\r\n Browsers:\r\n Edge: Chromium (120.0.2210.144)\r\n Internet Explorer: 11.0.19041.3636\r\n npmPackages:\r\n vitepress: 1.0.0-rc.40 => 1.0.0-rc.40\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.",[3225],{"name":3226,"color":3227},"question","5D5FAE",3513,"部署到Github Pages之后,如果使用自定义域名的话样式会丢失","2024-02-07T00:04:15Z","https://github.com/vuejs/vitepress/issues/3513",0.6337393,{"description":3234,"labels":3235,"number":3237,"owner":3152,"repository":3153,"state":3182,"title":3238,"updated_at":3239,"url":3240,"score":3241},"### Describe the bug\n\n目前更新到RC.35,文件后缀链接默认增加了.html后缀\n\n### Reproduction\n\n### 我在md文件中写:\r\n```\r\n[nginx.conf配置文件下载](/nginx/nginx.conf)\r\n```\r\n### `public`文件夹中也有这个文件\r\n\r\n### 但当我点开链接,RC.34版本会下载这个文件,但是RC.35则是自动在链接后面增加了html后缀,导致无法正常下载文件。\r\n\r\n\n\n### Expected behavior\n\n如上所述\n\n### System Info\n\n```Text\n如上所述\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.",[3236],{"name":3146,"color":3147},3408,"目前更新到RC.35,文件后缀链接默认增加了.html后缀","2024-01-13T00:04:52Z","https://github.com/vuejs/vitepress/issues/3408",0.6347743,["Reactive",3243],{},["Set"],["ShallowReactive",3246],{"$fTRc1wZytZ_XrK4EfJfei_Sz-An4H4Yy6syhVxH_PVJc":-1,"$fHu7vtaAjHGXai23y_FnNFPJ_q6CTx8JEfFTVUkIk9co":-1},"/vuejs/vitepress/3644"]