\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.",[2887,2890,2893],{"name":2888,"color":2889},"theme","0754FB",{"name":2891,"color":2892},"a11y","fbca04",{"name":2871,"color":2872},2930,"themeConfig.socialLinks.icon ","2024-02-02T09:23:16Z","https://github.com/vuejs/vitepress/issues/2930",0.7578961,{"description":2900,"labels":2901,"number":2904,"owner":2877,"repository":2878,"state":2879,"title":2905,"updated_at":2906,"url":2907,"score":2908},"### 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.",[2902,2903],{"name":2868,"color":2869},{"name":2871,"color":2872},4081,"源码无变化下,每次编译产物@localSearchIndexroot.js hash都不同","2025-03-02T18:08:51Z","https://github.com/vuejs/vitepress/issues/4081",0.75989735,{"description":2910,"labels":2911,"number":2915,"owner":2877,"repository":2878,"state":2916,"title":2917,"updated_at":2918,"url":2919,"score":2920},"### Is your feature request related to a problem? Please describe.\n\nI have a large amount of links (78 links) on my index webpage, and I'm mounting it in AWS Cloudfront. I'm getting 503 errors since I'm doing a kind of DOS attack prefetching all 78 links...\r\n\r\nI think this issue is related to usePrefetch() that enables \"intersectionObserver based pre-fetch\", and since all my links are above the webpage they are all prefetched at once...\n\n### Describe the solution you'd like\n\nI want to add an easy way of disabling this feature or find a way to only fetch them when links are visible/unfolded (they are dropdowns).\r\n\r\n\r\n\r\n\n\n### Describe alternatives you've considered\n\nI didn't try another way. Maybe someone with more experience can do this easily.\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.",[2912],{"name":2913,"color":2914},"contribution welcome","11E4B8",3163,"closed","Disable or modify usePrefetch behavior (rel=\"prefetch\" on links)","2023-11-27T00:04:46Z","https://github.com/vuejs/vitepress/issues/3163",0.7342957,{"description":2922,"labels":2923,"number":2925,"owner":2877,"repository":2878,"state":2916,"title":2926,"updated_at":2927,"url":2928,"score":2929},"### Is your feature request related to a problem? Please describe.\n\nI want user `h1` as my article outline, i can't use theme config to custom my outline\n\n### Describe the solution you'd like\n\nif i have config in my config.js\r\n```js\r\n themeConfig: {\r\n outline: [1,6] || 'all'\r\n}\r\n```\r\nthe title selector should like this\r\n```js\r\ndocument\r\n .querySelectorAll\u003CHTMLHeadingElement>('h1,h2, h3, h4, h5, h6') // include h1 title\r\n .forEach((el) => {\r\n if (el.textContent && el.id) {\r\n updatedHeaders.push({\r\n level: Number(el.tagName[1]),\r\n title: el.innerText.replace(/\\s+#\\s*$/, ''),\r\n link: `#${el.id}`\r\n })\r\n }\r\n })\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.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.",[2924],{"name":2888,"color":2889},1529,"The levels of header to display in the outline can't support h1 title","2023-08-12T00:04:14Z","https://github.com/vuejs/vitepress/issues/1529",0.73904204,{"description":2931,"labels":2932,"number":2936,"owner":2877,"repository":2878,"state":2916,"title":2937,"updated_at":2938,"url":2939,"score":2940},"### Describe the bug\r\n\r\nI'm getting some errors when running `pnpm build`, I guess it's because I should somehow wrap this component causing the error in `\u003CClientOnly />`, but how should I find the exact cause from the error log? It does not provide any useful details (see below screenshot)\r\n\r\n---\r\n\r\nAnother question, as I guess my error is because of this:\r\nShould I wrap `watch()` inside `onMounted()`? or in another word, can I do it? I didn't find any corresponding example in Vue documentation... \r\nSorry if this is a dumb question, as I'm a react guy :(\r\n```vue\r\n\u003Cscript setup lang=\"ts\">\r\nimport { useLocalStorage } from '@vueuse/core';\r\nimport { watch } from 'vue';\r\n\r\nconst nfcapiEnvRef = useLocalStorage('vp-nfcapi-env', 'staging', {\r\n deep: false,\r\n listenToStorageChanges: true,\r\n writeDefaults: true\r\n});\r\n\r\nwatch(nfcapiEnvRef, (value, oldValue) => {\r\n const htmlDataSet = document.documentElement.dataset;\r\n oldValue && (htmlDataSet.nfcapiEnv = oldValue.toLowerCase());\r\n htmlDataSet.nfcapiEnv = value.toLowerCase();\r\n}, { immediate: true });\r\n\u003C/script>\r\n```\r\n\r\n---\r\n\r\nScreenshot of the error:\r\n\r\n\r\n\r\n\r\n\r\n### Reproduction\r\n\r\nThis is not a bug, but a question\r\n\r\n### Expected behavior\r\n\r\nN/A\r\n\r\n### System Info\r\n\r\n```sh\r\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: 30.87 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.0 - C:\\NodeJS\\npm.CMD\r\n pnpm: 8.6.7 - C:\\NodeJS\\pnpm.CMD\r\n Browsers:\r\n Edge: Spartan (44.19041.1266.0), Chromium (114.0.1823.82)\r\n Internet Explorer: 11.0.19041.1566\r\n npmPackages:\r\n vitepress: ^1.0.0-beta.5 => 1.0.0-beta.5\r\n```\r\n\r\n\r\n### Additional context\r\n\r\nN/A\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.",[2933],{"name":2934,"color":2935},"question","5D5FAE",2627,"How should I trace build error?","2023-07-24T00:04:51Z","https://github.com/vuejs/vitepress/issues/2627",0.73905814,{"description":2942,"labels":2943,"number":2944,"owner":2877,"repository":2878,"state":2916,"title":2945,"updated_at":2946,"url":2947,"score":2948},"### Describe the bug\n\n在我编写一个.md文件时我是这么写的:\r\n\r\n```\r\n\u003Cimg alt=\"GitHub License\" src=\"https://img.shields.io/github/license/NoNameGMM/SignInForMiraiMC?style=flat&label=License\r\n\"/>\r\n\u003Cimg alt=\"Minecraft Version\" src=\"https://img.shields.io/badge/Minecraft-1.8--1.20-blue?style=flat&color=green\"/>\r\n\u003Cimg alt=\"GitHub Release\" src=\"https://img.shields.io/github/v/release/NoNameGMM/SignInForMiraiMC?style=flat&label=Release\"/>\r\n```\r\n\r\n正常来说应该是这样:\r\n\u003Cimg width=\"249\" alt=\"photo1\" src=\"https://github.com/vuejs/vitepress/assets/109721871/d5c41be5-f3df-43f7-bd88-a2f12a11490f\">\r\n\r\n可是vitepress的效果是:\r\n\u003Cimg width=\"107\" alt=\"屏幕截图 2024-03-03 200157\" src=\"https://github.com/vuejs/vitepress/assets/109721871/a5b20517-2e3f-4fb0-9390-1f06cdbbebd6\">\r\n\r\n\r\n\n\n### Reproduction\n\n同上\n\n### Expected behavior\n\n我想要实现正常markdown的效果\n\n### System Info\n\n```Text\nSystem:\r\n OS: Windows 11 10.0.22631\r\n CPU: (16) x64 AMD Ryzen 7 5800H with Radeon Graphics\r\n Memory: 1.68 GB / 13.86 GB\r\n Binaries:\r\n Node: 20.10.0 - C:\\Program Files\\nodejs\\node.EXE\r\n Yarn: 1.22.21 - ~\\AppData\\Roaming\\npm\\yarn.CMD\r\n npm: 10.2.3 - C:\\Program Files\\nodejs\\npm.CMD\r\n pnpm: 8.15.4 - ~\\AppData\\Roaming\\npm\\pnpm.CMD\r\n Browsers:\r\n Edge: Chromium (122.0.2365.59)\r\n Internet Explorer: 11.0.22621.1\r\n npmPackages:\r\n vitepress: ^1.0.0-rc.44 => 1.0.0-rc.44\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.",[],3631,"使用shields.io徽标时图片自动换行","2024-03-11T00:04:39Z","https://github.com/vuejs/vitepress/issues/3631",0.74407786,{"description":2950,"labels":2951,"number":2953,"owner":2877,"repository":2878,"state":2916,"title":2954,"updated_at":2955,"url":2956,"score":2957},"### Describe the bug\r\n\r\nhttps://github.com/vuejs/vitepress/blob/75ca9e4302c65e3bcc9518f7df928318380f6cf6/src/node/markdown/plugins/highlightLines.ts#L30\r\n\r\n`highlightLinePlugin` is used before `attrs`, and `token.info` is rewritten.\r\n\r\nvia https://github.com/vuejs/vitepress/pull/664#discussion_r902203459\r\n\r\n### Reproduction\r\n\r\n\u003Cimg width=\"177\" alt=\"image\" src=\"https://user-images.githubusercontent.com/8336744/174726207-1c068f94-f597-4d5e-9101-4709a08a60c3.png\">\r\n\r\n\u003Cimg width=\"299\" alt=\"image\" src=\"https://user-images.githubusercontent.com/8336744/174726233-83967c42-db47-4c12-8dbd-0c83a817c448.png\">\r\n\r\n\r\n### Expected behavior\r\n\r\nRender `data=\"asdf\"`\r\n\r\n### System Info\r\n\r\n```shell\r\nSystem:\r\n OS: macOS 13.0\r\n CPU: (10) arm64 Apple M1 Max\r\n Memory: 13.84 GB / 64.00 GB\r\n Shell: 5.8.1 - /bin/zsh\r\n Binaries:\r\n Node: 16.15.1 - ~/Library/Caches/fnm_multishells/95455_1655742557079/bin/node\r\n Yarn: 1.22.19 - ~/Library/Caches/fnm_multishells/95455_1655742557079/bin/yarn\r\n npm: 8.12.1 - ~/Library/Caches/fnm_multishells/95455_1655742557079/bin/npm\r\n Browsers:\r\n Chrome: 102.0.5005.115\r\n Firefox: 101.0.1\r\n Safari: 16.0\r\n npmPackages:\r\n vitepress: ^1.0.0-alpha.2 => 1.0.0-alpha.2\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.",[2952],{"name":2871,"color":2872},826,"support adding attributes to code blocks","2023-08-11T00:04:28Z","https://github.com/vuejs/vitepress/issues/826",0.7454614,{"description":2959,"labels":2960,"number":2962,"owner":2877,"repository":2878,"state":2916,"title":2963,"updated_at":2964,"url":2965,"score":2966},"### Describe the bug\n\nA recent update (https://github.com/vuejs/vitepress/pull/1064) added a `word-break: break-word` style to all HTML elements. This leads to unpleasant results such as this in table cells (see the first and last column):\r\n\r\n\u003Cimg width=\"724\" alt=\"Table after\" src=\"https://user-images.githubusercontent.com/243601/192322921-5ab4d6a1-00e3-48d4-af11-c39c8c3e0265.png\">\r\n\r\nWhile before this update the result was much more readable:\r\n\r\n\u003Cimg width=\"729\" alt=\"Table before\" src=\"https://user-images.githubusercontent.com/243601/192323027-c7ffff4a-5989-497d-9aa0-b50b4c3cf216.png\">\r\n\n\n### Reproduction\n\nStackBlitz reproduction with a table:\r\nhttps://stackblitz.com/edit/vitepress-theme-word-break-issue?file=index.md\n\n### Expected behavior\n\nRisky styles such as `word-break: break-word` should not be applied to all elements.\r\n\r\nHandling overflowing content (if any) should be done at the component level, probably with specific solutions for each component.\n\n### System Info\n\n```shell\nSystem:\r\n OS: macOS 12.6\r\n CPU: (8) arm64 Apple M1\r\n Memory: 117.00 MB / 8.00 GB\r\n Shell: 3.5.1 - /opt/homebrew/bin/fish\r\n Binaries:\r\n Node: 16.17.1 - /opt/homebrew/opt/node@16/bin/node\r\n Yarn: 1.22.19 - /opt/homebrew/bin/yarn\r\n npm: 8.19.1 - /Volumes/Pieces/.npm/bin/npm\r\n Browsers:\r\n Chrome: 105.0.5195.125\r\n Firefox Nightly: 107.0a1\r\n Safari: 16.0\r\n npmPackages:\r\n vitepress: ^1.0.0-alpha.16 => 1.0.0-alpha.16\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.",[2961],{"name":2888,"color":2889},1402,"Consider rolling back the global `word-break: break-word` style","2023-01-21T14:25:23Z","https://github.com/vuejs/vitepress/issues/1402",0.7487094,{"description":2968,"labels":2969,"number":2973,"owner":2877,"repository":2878,"state":2916,"title":2974,"updated_at":2975,"url":2976,"score":2977},"### Describe the bug\r\n\r\nInstalling a fresh vitepress quickstart and using yarn with PnP installs. `yarn run docs:build` fails with:\r\n\r\n```\r\nbuild error:\r\n[vite]: Rollup failed to resolve import \"vue/server-renderer\" from \"/home/thomas/projects/testpnp/README.md\".\r\nThis is most likely unintended because it can break your application at runtime.\r\nIf you do want to externalize this module explicitly add it to\r\n`build.rollupOptions.external`\r\nError: [vite]: Rollup failed to resolve import \"vue/server-renderer\" from \"/home/thomas/projects/testpnp/README.md\".\r\nThis is most likely unintended because it can break your application at runtime.\r\nIf you do want to externalize this module explicitly add it to\r\n`build.rollupOptions.external`\r\n at viteWarn (file:///home/thomas/projects/testpnp/.yarn/__virtual__/vite-virtual-4c2197c7d1/3/.yarn/berry/cache/vite-npm-5.2.11-fa468e8533-10c0.zip/node_modules/vite/dist/node/chunks/dep-cNe07EU9.js:67612:27)\r\n at onRollupWarning (file:///home/thomas/projects/testpnp/.yarn/__virtual__/vite-virtual-4c2197c7d1/3/.yarn/berry/cache/vite-npm-5.2.11-fa468e8533-10c0.zip/node_modules/vite/dist/node/chunks/dep-cNe07EU9.js:67640:9)\r\n at onwarn (file:///home/thomas/projects/testpnp/.yarn/__virtual__/vite-virtual-4c2197c7d1/3/.yarn/berry/cache/vite-npm-5.2.11-fa468e8533-10c0.zip/node_modules/vite/dist/node/chunks/dep-cNe07EU9.js:67356:13)\r\n at file:///home/thomas/.yarn/berry/cache/rollup-npm-4.18.0-9eadb97a09-10c0.zip/node_modules/rollup/dist/es/shared/node-entry.js:18514:13\r\n at Object.logger [as onLog] (file:///home/thomas/.yarn/berry/cache/rollup-npm-4.18.0-9eadb97a09-10c0.zip/node_modules/rollup/dist/es/shared/node-entry.js:20162:9)\r\n at ModuleLoader.handleInvalidResolvedId (file:///home/thomas/.yarn/berry/cache/rollup-npm-4.18.0-9eadb97a09-10c0.zip/node_modules/rollup/dist/es/shared/node-entry.js:19104:26)\r\n at file:///home/thomas/.yarn/berry/cache/rollup-npm-4.18.0-9eadb97a09-10c0.zip/node_modules/rollup/dist/es/shared/node-entry.js:19062:26\r\n```\r\n\r\n### Reproduction\r\n\r\nUse this repo: https://github.com/l3d00m/vitepress-yarn-repro and run `corepack enable && yarn install && yarn run docs:build`\r\n\r\nAlternatively: \r\n\r\n1. Create New folder\r\n1. `yarn set version stable`\r\n2. `yarn add -D vitepress` \r\n3. `yarn vitepress init` (use default settings, just press enter)\r\n4. `yarn run docs:build` fails\r\n\r\n### Expected behavior\r\n\r\nShould not fail, should work out of the box\r\n\r\n### System Info\r\n\r\n```Text\r\nSystem:\r\n OS: Linux 6.9 Manjaro Linux\r\n CPU: (12) x64 AMD Ryzen 5 2600 Six-Core Processor\r\n Memory: 6.45 GB / 15.53 GB\r\n Container: Yes\r\n Shell: 5.9 - /usr/bin/zsh\r\n Binaries:\r\n Node: 20.13.1 - ~/.nvm/versions/node/v20.13.1/bin/node\r\n Yarn: 4.2.2 - ~/.nvm/versions/node/v20.13.1/bin/yarn\r\n npm: 10.5.2 - ~/.nvm/versions/node/v20.13.1/bin/npm\r\n Browsers:\r\n Chromium: 124.0.6367.155\r\n```\r\n\r\n\r\n### Additional context\r\n\r\nThis is similar to #3035, but here it always fails, also with a fresh repo.\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.",[2970],{"name":2971,"color":2972},"docs","0075ca",3919,"Fails to build with yarn v4 PnP, rollup error","2024-06-03T04:41:58Z","https://github.com/vuejs/vitepress/issues/3919",0.7501596,["Reactive",2979],{},["Set"],["ShallowReactive",2982],{"$fTRc1wZytZ_XrK4EfJfei_Sz-An4H4Yy6syhVxH_PVJc":-1,"$f0tbCjniRx21GeHIhNIKZ-aBRlORML_BTbnOuokPW_WY":-1},"/vuejs/vitepress/3149"]