\u003C/svg>',\r\n\r\n```\r\n\r\n### Expected behavior\r\n\r\nAdd `width=\"24\" height=\"24\" `attribute\r\nLike this\r\n```txt\r\n'\u003Csvg xmlns=\"http://www.w3.org/2000/svg\" width=\"24\" height=\"24\" viewBox=\"0 0 24 24\">' \r\n```\r\n### System Info\r\n\r\n```sh\r\nSystem:\r\n OS: Linux 6.3 Kali GNU/Linux Rolling 2023.3\r\n CPU: (12) x64 Intel(R) Core(TM) i7-10750H CPU @ 2.60GHz\r\n Memory: 8.21 GB / 15.24 GB\r\n Container: Yes\r\n Shell: 5.9 - /usr/bin/zsh\r\n Binaries:\r\n Node: 18.13.0 - /usr/bin/node\r\n Yarn: 1.22.19 - /usr/local/bin/yarn\r\n npm: 9.2.0 - /usr/bin/npm\r\n Browsers:\r\n Chrome: 116.0.5845.179\r\n npmPackages:\r\n vitepress: ^1.0.0-rc.10 => 1.0.0-rc.10\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.",[2865,2868,2871],{"name":2866,"color":2867},"theme","0754FB",{"name":2869,"color":2870},"a11y","fbca04",{"name":2872,"color":2873},"stale","ededed",2930,"vuejs","vitepress","open","themeConfig.socialLinks.icon ","2024-02-02T09:23:16Z","https://github.com/vuejs/vitepress/issues/2930",0.7420299,{"description":2883,"labels":2884,"number":2889,"owner":2875,"repository":2876,"state":2877,"title":2890,"updated_at":2891,"url":2892,"score":2893},"### Describe the bug\n\nbuildConcurrency 默认为64,使用pMap之后,无法保证本地搜索索引的添加顺序\r\n\r\nhttps://github.com/vuejs/vitepress/blob/8f31a4c0780657af9137762c9394c56912f6e383/src/node/plugins/localSearchPlugin.ts#L137\n\n### Reproduction\n\n重现路径:\r\n * 配置文件中,启动 `themeConfig.server.provider = 'local'`\r\n * 需要处理的页面尽量多\r\n\r\n临时规避方案:\r\n配置 `buildConcurrency = 1` 之后,问题消失\n\n### Expected behavior\n\n每次编译都生成相同的 @localSearchIndexroot.js \n\n### System Info\n\n```Text\nSystem:\r\n OS: Linux 6.1\r\n CPU: (32) x64 AMD EPYC 7K62 48-Core Processor\r\n Memory: 46.37 GB / 62.79 GB\r\n Container: Yes\r\n Shell: 5.2.0 - /bin/bash\r\n Binaries:\r\n Node: 16.19.1 - ~/.n/bin/node\r\n Yarn: 1.22.10 - ~/.n/bin/yarn\r\n npm: 8.19.3 - ~/.n/bin/npm\r\n pnpm: 8.6.11 - ~/.n/bin/pnpm\r\n npmPackages:\r\n vitepress: ^1.3.1 => 1.3.1\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.",[2885,2888],{"name":2886,"color":2887},"build","377ba8",{"name":2872,"color":2873},4081,"源码无变化下,每次编译产物@localSearchIndexroot.js hash都不同","2025-03-02T18:08:51Z","https://github.com/vuejs/vitepress/issues/4081",0.7604537,{"description":2895,"labels":2896,"number":2899,"owner":2875,"repository":2876,"state":2877,"title":2900,"updated_at":2901,"url":2902,"score":2903},"### Is your feature request related to a problem? Please describe.\n\nI want to expand only one sidebar at a time when I have multiple sidebars\r\n\n\n### Describe the solution you'd like\n\nProvide a configuration so that the sidebar can be expanded mutually exclusive\r\n\n\n### Describe alternatives you've considered\n\n_No response_\n\n### Additional context\n\n_No response_\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.",[2897,2898],{"name":2866,"color":2867},{"name":2872,"color":2873},3441," How to make multiple sidebars expand only one at a time","2025-03-02T18:09:51Z","https://github.com/vuejs/vitepress/issues/3441",0.7611965,{"description":2905,"labels":2906,"number":2910,"owner":2875,"repository":2876,"state":2911,"title":2912,"updated_at":2913,"url":2914,"score":2915},"### Describe the bug\r\n\r\nI upload the files under the path `docs/.vitepress/dist/` to my website, but I cannot visit the vitepress online.\r\n\r\nThe uploaded files is here is reproduce the behavior (`pnpm docs-build`) locally.\r\n\r\n\r\n\r\n### Reproduction\r\nTo reproduce the behavior, run `pnpm docs-build` and upload files under `docs/.vitepress/dist/` to the server(website)'s default (root) path.\r\n\r\nhttps://vitepress.vuejs.org/guide/deploy#building-the-docs\r\nOr Upload the file under the path of `docs/.vitepress/dist/` to the web server, with Github Actions:\r\n```\r\nname: Deploy\r\n\r\non:\r\n push:\r\n branches: \r\n - main\r\n paths-ignore:\r\n - README.md\r\n - LICENSE\r\n\r\njobs:\r\n build-production:\r\n runs-on: ubuntu-latest\r\n strategy:\r\n matrix:\r\n node-version: [14, 17]\r\n steps:\r\n - name: Checkout\r\n uses: actions/checkout@v2\r\n\r\n - name: Install pnpm\r\n uses: pnpm/action-setup@v2.0.1\r\n with:\r\n version: 6.15.1\r\n\r\n - name: Set node version to ${{ matrix.node_version }}\r\n uses: actions/setup-node@v2\r\n with:\r\n node-version: ${{ matrix.node_version }}\r\n cache: \"pnpm\"\r\n\r\n - name: Install deps\r\n run: pnpm install\r\n\r\n - name: Build\r\n run: pnpm docs-build\r\n\r\n - name: Deploy file to server\r\n uses: appleboy/scp-action@master\r\n with:\r\n host: ${{ secrets.IP }}\r\n username: ${{ secrets.USERNAME }}\r\n password: ${{ secrets.PASSWORD }}\r\n source: 'docs/.vitepress/dist/*'\r\n target: '/www/wwwroot/jun.sh/main'\r\n strip_components: 3\r\n rm: 'true'\r\n```\r\n\r\n### Expected behavior\r\n\r\nVisit the vitepress website online correctly.\r\n\r\n### System Info\r\n\r\n```shell\r\npnpm - 6.15.1\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] Follow our [Code of Conduct](https://vuejs.org/coc)\r\n- [X] Read the [docs](https://vitepress.vuejs.org/).\r\n- [X] Check that there isn't already an issue that reports the same bug to avoid creating a duplicate.",[2907],{"name":2908,"color":2909},"bug: pending triage","e99695",469,"closed","Cannot visit vitepress online after deploying files under `docs/.vitepress/dist/` to my server","2023-01-21T16:20:22Z","https://github.com/vuejs/vitepress/issues/469",0.59832263,{"description":2917,"labels":2918,"number":2920,"owner":2875,"repository":2876,"state":2911,"title":2921,"updated_at":2922,"url":2923,"score":2924},"### Describe the bug\r\n\r\nnew version's issue.\r\n[Vite Doc] https://vitepress.vuejs.org/guide/getting-started was build by .49,\r\n\r\nAt the same time, the problem is that the search jump fails because anchors are not positioned correctly.\r\n\r\n[Vue Doc]https://vuejs.org/guide/essentials/event-handling.html#method-handlers build by .29 ,it's normal.\r\n\r\n### Reproduction\r\n\r\nin production \r\nhttps://vitepress.vuejs.org/guide/getting-started\r\n\r\n### Expected behavior\r\n\r\nURL can correctly locate the element \r\n\r\n\r\n### System Info\r\n\r\n```shell\r\nbrowser: Microsoft Edge\r\nVersion 110.0.1587.57 (Official build) (64-bit)\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] Follow our [Code of Conduct](https://vuejs.org/about/coc.html)\r\n- [X] Read the [docs](https://vitepress.vuejs.org).\r\n- [X] Check that there isn't already an issue that reports the same bug to avoid creating a duplicate.",[2919],{"name":2908,"color":2909},2023,"[DOC BUG] url not changing when scrolling side navbar and url jump failure","2023-03-10T00:04:38Z","https://github.com/vuejs/vitepress/issues/2023",0.6969574,{"description":2926,"labels":2927,"number":2928,"owner":2875,"repository":2876,"state":2911,"title":2929,"updated_at":2930,"url":2931,"score":2932},"### Describe the bug\n\nI have written a markdown it plugin, and the code is as follows\r\n```js\r\nexport default defineConfig({\r\n title: \"My Awesome Project\",\r\n markdown: {\r\n config: (md) => {\r\n md.block.ruler.before(\r\n \"paragraph\",\r\n \"myplugin\",\r\n function (state, startLine, endLine) {\r\n var ch,\r\n token,\r\n pos = state.bMarks[startLine] + state.tShift[startLine],\r\n max = state.eMarks[startLine];\r\n ch = state.src.charCodeAt(pos);\r\n\r\n if (ch !== 0x40 /*@*/ || pos >= max) {\r\n return false;\r\n }\r\n\r\n let text = state.src.substring(pos, max);\r\n let rg = /^@\\s(.*)/;\r\n let match = text.match(rg);\r\n\r\n if (match && match.length) {\r\n let result = match[1];\r\n\r\n // Create the opening token for the h1 tag\r\n token = state.push(\"heading_open\", \"h1\", 1);\r\n token.markup = \"@\";\r\n token.map = [startLine, state.line];\r\n // Add class to the h1 tag\r\n token.attrs = [[\"class\", \"bg-red-300\"]];\r\n\r\n // Create the inline content inside the h1 tag\r\n token = state.push(\"inline\", \"\", 0);\r\n token.content = result;\r\n token.map = [startLine, state.line];\r\n token.children = [];\r\n\r\n // Create the closing token for the h1 tag\r\n token = state.push(\"heading_close\", \"h1\", -1);\r\n token.markup = \"@\";\r\n\r\n state.line = startLine + 1;\r\n return true;\r\n }\r\n }\r\n );\r\n },\r\n },\r\n });\r\n```\r\n\r\nIt's just a simple syntax parse(This is not the main point, it is just a simple plugin written to illustrate the issue)\r\n\r\nEnter the following content in the markdown file\r\n```\r\n@ header -> \u003Ch1 class=\"bg-red-300\">header\u003C/h1> \r\n```\r\n\r\nI have followed the [tailwindcss guide](https://tailwindcss.com/docs/guides/vite#vue)Installation\r\n\r\nThen start the development server\r\n```bash\r\nnpm run docs:dev\r\n```\r\n\r\n\r\nBut its'. bg-red-300 'style did not take effect\r\n\r\n\r\nBut when I continued to input an HTML fragment carrying 'bg-red-300' in markdown, it took effect\r\n\r\n\r\n\r\n\r\nWhen I deleted the HTML fragment carrying 'bg-red-300' and restarted the development server, it had no effect again\r\n\r\nrefer to:\r\nhttps://github.com/ajiho/vitepress-tailwindcss-markdown-it\r\n\r\nThis problem has been bothering me for a long time, can you help me?\r\n\n\n### Reproduction\n\n[refer to](https://github.com/ajiho/vitepress-tailwindcss-markdown-it)\n\n### Expected behavior\n\nAfter the parse plugin of markdown it renders, the tailwindcss style should take effect immediately\n\n### System Info\n\n```Text\nSystem:\r\n OS: Windows 10 10.0.19044\r\n CPU: (8) x64 Intel(R) Core(TM) i7-4720HQ CPU @ 2.60GHz\r\n Memory: 1.36 GB / 7.91 GB\r\n Binaries:\r\n Node: 22.11.0 - C:\\Program Files\\nodejs\\node.EXE\r\n npm: 10.9.0 - C:\\Program Files\\nodejs\\npm.CMD\r\n Browsers:\r\n Edge: Chromium (131.0.2903.86)\r\n Internet Explorer: 11.0.19041.3636\r\n npmPackages:\r\n vitepress: ^1.5.0 => 1.5.0\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.",[],4433,"The style does not take effect when using the markdown extension plugin with tailwindcss","2024-12-26T04:43:12Z","https://github.com/vuejs/vitepress/issues/4433",0.7218415,{"description":2934,"labels":2935,"number":2937,"owner":2875,"repository":2876,"state":2911,"title":2938,"updated_at":2939,"url":2940,"score":2941},"### Describe the bug\n\nThe outline nav has the assistive tech text \"Table of Contents for current page\". Giving assistive tech users distinct or exclusive content is not recommended. In this case, the assistive tech-only text is at best duplicative (with the default outline title \"On this page\") and at worst conflicts with the visible text (if the outline title is configured to be something not equivalent to ~'things on this page').\n\n### Reproduction\n\nUse a screen reader to read the outline.\n\n### Expected behavior\n\nAssistive tech recognizes the configured outline title is as the outline's heading. No assistive tech-exclusive text duplicating displayed text is provided.\n\n### System Info\n\n```Text\nBrowser issue but here you go!\r\n\r\n\r\nSystem:\r\n OS: macOS 14.3.1\r\n CPU: (8) arm64 Apple M1\r\n Memory: 292.14 MB / 16.00 GB\r\n Shell: 5.9 - /opt/homebrew/bin/zsh\r\n Binaries:\r\n Node: 18.12.0 - ~/.asdf/installs/nodejs/18.12.0/bin/node\r\n Yarn: 1.22.22 - /opt/homebrew/bin/yarn\r\n npm: 8.19.2 - ~/.asdf/installs/nodejs/18.12.0/bin/npm\r\n pnpm: 8.15.6 - ~/Library/pnpm/pnpm\r\n bun: 1.1.4 - ~/.bun/bin/bun\r\n Browsers:\r\n Brave Browser: 123.1.64.122\r\n Chrome: 123.0.6312.124\r\n Edge: 123.0.2420.97\r\n Safari: 17.3.1\r\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.",[2936],{"name":2908,"color":2909},3800,"accessibility: outline nav has duplicative assistive tech text not displayed visually","2024-05-04T04:42:03Z","https://github.com/vuejs/vitepress/issues/3800",0.7288579,{"description":2943,"labels":2944,"number":2948,"owner":2875,"repository":2876,"state":2911,"title":2949,"updated_at":2950,"url":2951,"score":2952},"### Describe the bug\n\nMy site is showing these two errors in the console:\n\n> A preload for 'https://.../assets/app.BXR81nYj.js' is found, but is not used because the request credentials mode does not match. Consider taking a look at crossorigin attribute.\n\n> The resource https://.../assets/app.BXR81nYj.js was preloaded using link preload but not used within a few seconds from the window's load event. Please make sure it has an appropriate `as` value and it is preloaded intentionally.\n\nIs there a fix or workaround for this? The closest related issue I was able to find was https://github.com/vercel/next.js/discussions/16850\n\nI'm using vitepress v1.6.3.\n\n### Reproduction\n\nI wasn't able to reproduce the issue in vitepress.new or my local dev server -- these errors only show up on production when deployed to Cloudflare Pages.\n\n### Expected behavior\n\nNo errors should be shown.\n\n### System Info\n\n```Text\nSystem:\n OS: Linux 5.15 Ubuntu 24.04.2 LTS 24.04.2 LTS (Noble Numbat)\n CPU: (16) x64 AMD Ryzen 7 PRO 7840U w/ Radeon 780M Graphics\n Memory: 22.94 GB / 29.21 GB\n Container: Yes\n Shell: 5.2.21 - /bin/bash\n Binaries:\n Node: 22.12.0 - ~/.nvm/versions/node/v22.12.0/bin/node\n npm: 10.9.0 - ~/.nvm/versions/node/v22.12.0/bin/npm\n bun: 1.2.4 - ~/.bun/bin/bun\n npmPackages:\n vitepress: ^1.6.3 => 1.6.3\n```\n\n### Additional context\n\nWhen I first started using vitepress (a version before v1.5.0), I did not see any errors.\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.",[2945],{"name":2946,"color":2947},"need more info","bdbefc",4714,"Compiled assets/app.js file found but not used errors","2025-04-23T04:40:05Z","https://github.com/vuejs/vitepress/issues/4714",0.73646647,{"description":2954,"labels":2955,"number":2957,"owner":2875,"repository":2876,"state":2911,"title":2958,"updated_at":2959,"url":2960,"score":2961},"### Describe the bug\n\n当没有sidebar,有footer和outline时,滚动轴在底部,outline将会显示异常\n\n### Reproduction\n\n\r\n\n\n### Expected behavior\n\n修复outline显示异常,固定在原位不动\n\n### System Info\n\n```shell\nSystem:\r\n OS: Windows 10 10.0.22000\r\n CPU: (8) x64 11th Gen Intel(R) Core(TM) i7-1165G7 @ 2.80GHz\r\n Memory: 8.82 GB / 15.69 GB\r\n Binaries:\r\n Node: 16.17.0 - D:\\developer_tools\\nodejs\\node.EXE\r\n npm: 8.19.1 - D:\\developer_tools\\nodejs\\npm.CMD\r\n Browsers:\r\n Edge: Spartan (44.22000.120.0)\r\n Internet Explorer: 11.0.22000.120\n```\n\n\n### Additional context\n\n_No response_\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.",[2956],{"name":2866,"color":2867},1464,"outline显示异常","2023-01-21T14:22:49Z","https://github.com/vuejs/vitepress/issues/1464",0.73831105,{"description":2963,"labels":2964,"number":2966,"owner":2875,"repository":2876,"state":2911,"title":2967,"updated_at":2968,"url":2969,"score":2970},"### Describe the bug\n\n只是开启本地搜索未做任何更改\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_No response_\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] Check that there isn't already an issue that reports the same bug to avoid creating a duplicate.",[2965],{"name":2908,"color":2909},2287,"貌似从7.3开始本地搜索报错","2023-05-05T00:04:14Z","https://github.com/vuejs/vitepress/issues/2287",0.73872715,["Reactive",2972],{},["Set"],["ShallowReactive",2975],{"$fTRc1wZytZ_XrK4EfJfei_Sz-An4H4Yy6syhVxH_PVJc":-1,"$f6dIpecz9v7kr7VSylAItlWvPygsed0XXlhfrnDFBtDw":-1},"/vuejs/vitepress/2027"]