```\r\n\r\nIt doesn't seem to be correct:\r\n\r\n\r\n\r\nHow to make it look correct, just like on the homepage?:\r\n\r\n\r\n\r\n",[2867],{"name":2868,"color":2869},"stale","ededed",4273,"vuejs","vitepress","open","How to use default Vue components elsewhere","2024-12-03T17:27:39Z","https://github.com/vuejs/vitepress/issues/4273",0.7158339,{"description":2879,"labels":2880,"number":2882,"owner":2871,"repository":2872,"state":2873,"title":2883,"updated_at":2884,"url":2885,"score":2886},"### Describe the bug\n\nIt might be intentional, as documented it can be used to prevent router conflicts.\r\nBut what if I want the link in `vp-raw` to have SPA behaviour? how can I achieve that? It's giving me headache that I want to both avoid built-in styles but also retain SPA navigation behaviour instead of refreshing the whole page.\n\n### Reproduction\n\nhttps://stackblitz.com/edit/vite-l6ciup?file=docs%2Findex.md\n\n### Expected behavior\n\nIt won't refresh the whole page\n\n### System Info\n\n```Text\nSystem:\r\n OS: Windows 11 10.0.22631\r\n CPU: (8) x64 11th Gen Intel(R) Core(TM) i5-1135G7 @ 2.40GHz\r\n Memory: 5.24 GB / 31.69 GB\r\n Binaries:\r\n Node: 20.11.0 - C:\\Program Files\\nodejs\\node.EXE\r\n npm: 10.8.2 - C:\\Program Files\\nodejs\\npm.CMD\r\n pnpm: 9.6.0 - ~\\AppData\\Local\\pnpm\\pnpm.EXE\r\n Browsers:\r\n Edge: Chromium (127.0.2651.74)\r\n Internet Explorer: 11.0.22621.3527\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.",[2881],{"name":2868,"color":2869},4112,"Distinguish style isolation, router isolation, and both","2025-03-02T18:08:47Z","https://github.com/vuejs/vitepress/issues/4112",0.7196893,{"description":2888,"labels":2889,"number":2894,"owner":2871,"repository":2872,"state":2873,"title":2895,"updated_at":2896,"url":2897,"score":2898},"### Describe the bug\n\n这个情况从中文用户使用中发现,也可能广泛存在于非英语键盘的用户中。输入关键字过程中,尝试给出的结果会中断拼写。\n\n### Reproduction\n\n1. 进入Vitrepress文档首页 https://vitepress.dev/zh/\r\n2. 触发打开搜索框\r\n3. 使用“微软输入法”并尝试**缓慢输入**`复用`,即按顺序输入`f`-`u`-`y`-`o`-`n`-`g`\n\n### Expected behavior\n\n希望能够顺畅的完成关键字输入\n\n### System Info\n\n```Text\nSystem:\r\n OS: Windows 10 10.0.22631\r\n CPU: (16) x64 AMD Ryzen 7 6800H with Radeon Graphics\r\n Memory: 44.07 GB / 63.18 GB\r\n Binaries:\r\n Node: 20.10.0 - C:\\Program Files\\nodejs\\node.EXE\r\n npm: 10.2.5 - C:\\Program Files\\nodejs\\npm.CMD\r\n Browsers:\r\n Edge: Chromium (121.0.2277.128)\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.",[2890,2893],{"name":2891,"color":2892},"upstream","BF29ED",{"name":2868,"color":2869},3604,"algolia搜索框在输入关键字时会中断输入法拼写","2024-04-12T01:59:21Z","https://github.com/vuejs/vitepress/issues/3604",0.72872424,{"description":2900,"labels":2901,"number":2903,"owner":2871,"repository":2872,"state":2873,"title":2904,"updated_at":2905,"url":2906,"score":2907},"### Describe the bug\n\nI'm using vitepress's nodejs api, but one problem is that if I call build twice, the second time there will be the wrong cache, causing the built index.html to still be the old result from the first time.\r\n\r\n```ts\r\nimport { mkdir, readFile, writeFile } from 'fs/promises'\r\nimport path from 'path'\r\nimport { build } from 'vitepress'\r\nimport { it, expect } from 'vitest'\r\n\r\nconst tempPath = path.resolve(__dirname, '.temp')\r\n\r\nit('should build', async () => {\r\n await mkdir(tempPath, { recursive: true })\r\n await writeFile(path.resolve(tempPath, 'index.md'), '# test 1')\r\n await build(tempPath, {\r\n outDir: path.resolve(tempPath, 'dist'),\r\n })\r\n expect(\r\n await readFile(path.resolve(tempPath, 'dist/index.html'), 'utf-8'),\r\n ).include('test 1')\r\n await writeFile(path.resolve(tempPath, 'index.md'), '# test 2')\r\n await build(tempPath, {\r\n outDir: path.resolve(tempPath, 'dist'),\r\n })\r\n expect(\r\n await readFile(path.resolve(tempPath, 'dist/index.html'), 'utf-8'),\r\n ).include('test 2') // AssertionError: expected '\u003C!DOCTYPE html>\\n\u003Chtml lang=\"en-US\" d…' to include 'test 2'\r\n})\r\n```\n\n### Reproduction\n\n1. `git clone https://github.com/rxliuli/vitepress-error-demo`\r\n2. `pnpm i`\r\n3. `pnpm vitest`\n\n### Expected behavior\n\nThe cache should be cleared during the second build\n\n### System Info\n\n```Text\nSystem:\r\n OS: macOS 13.3\r\n CPU: (12) arm64 Apple M2 Max\r\n Memory: 10.56 GB / 64.00 GB\r\n Shell: 5.9 - /bin/zsh\r\n Binaries:\r\n Node: 20.10.0 - /usr/local/bin/node\r\n Yarn: 1.22.19 - /usr/local/bin/yarn\r\n npm: 10.2.3 - /usr/local/bin/npm\r\n pnpm: 8.12.1 - /usr/local/bin/pnpm\r\n Watchman: 2023.08.14.00 - /opt/homebrew/bin/watchman\r\n Browsers:\r\n Brave Browser: 115.1.56.11\r\n Chrome: 120.0.6099.109\r\n Safari: 16.4\r\n npmPackages:\r\n vitepress: 1.0.0-rc.32 => 1.0.0-rc.32\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],{"name":2868,"color":2869},3363,"bug: Repeated builds will result in incorrect cache","2025-03-02T18:10:05Z","https://github.com/vuejs/vitepress/issues/3363",0.73535234,{"description":2909,"labels":2910,"number":2912,"owner":2871,"repository":2872,"state":2873,"title":2913,"updated_at":2914,"url":2915,"score":2916},"### Is your feature request related to a problem? Please describe.\n\nI am using obsidian ,hidden files and dir , this application in no found\n\n### Describe the solution you'd like\n\nCan I rename this dir .vitepress ? \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.",[2911],{"name":2868,"color":2869},3793,".vitepress dir Whether you can rename it ? ","2024-06-23T07:11:50Z","https://github.com/vuejs/vitepress/issues/3793",0.7353821,{"description":2918,"labels":2919,"number":2923,"owner":2871,"repository":2872,"state":2873,"title":2924,"updated_at":2925,"url":2926,"score":2927},"### Describe the bug\n\nHi,\n\nOpening a duplicate issue here as the original one is locked.\n \nAre there any plans for issue #4251? It got automatically closed by the bot but is still an annoying problem.\n\nWhile the PR in that issue won't handle replacing headers because their anchor `id` would change, it is still helpful not having to reload the server manually each time after incremental markdown changes when testing the search functionality.\n\nThanks!\n\n### Reproduction\n\nN/A\n\n### Expected behavior\n\n N/A\n\n### System Info\n\n```Text\nN/A\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.",[2920],{"name":2921,"color":2922},"bug: pending triage","e99695",4688,"`MiniSearch: duplicate ID` error when restarting the dev server (Duplicate for #4251)","2025-04-14T15:59:05Z","https://github.com/vuejs/vitepress/issues/4688",0.7357904,{"description":2929,"labels":2930,"number":2935,"owner":2871,"repository":2872,"state":2873,"title":2936,"updated_at":2937,"url":2938,"score":2939},"### Describe the bug\r\n\r\nThe theme docs and code completion state that the `router` instance is exposed in `enhanceApp()` but it appears the `router` instance is actually a `route` instance, and doesn't conform to the [Router](https://vitepress.dev/reference/runtime-api#userouter) interface.\r\n\r\n\r\n\r\n\r\n### Reproduction\r\n\r\nInitialize a new project, then add the following code to `enhanceApp()`:\r\n\r\n```ts\r\n console.log({ router })\r\n router.onAfterRouteChanged((to: string) => {\r\n console.log(`changed to: ${to}`)\r\n })\r\n```\r\n\r\n### Expected behavior\r\n\r\nWe should be able to interact with the `router` instance\r\n\r\n### System Info\r\n\r\n```Text\r\nSystem:\r\n OS: macOS 14.5\r\n CPU: (12) arm64 Apple M3 Pro\r\n Memory: 213.02 MB / 36.00 GB\r\n Shell: 5.9 - /bin/zsh\r\n Binaries:\r\n Node: 20.15.1 - /usr/local/bin/node\r\n Yarn: 1.22.22 - /usr/local/bin/yarn\r\n npm: 10.7.0 - /usr/local/bin/npm\r\n pnpm: 8.15.6 - /usr/local/bin/pnpm\r\n Browsers:\r\n Brave Browser: 122.1.63.169\r\n Chrome: 128.0.6613.138\r\n Chrome Canary: 130.0.6720.0\r\n Edge: 128.0.2739.79\r\n Safari: 17.5\r\n npmPackages:\r\n vitepress: ^1.3.4 => 1.3.4\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.",[2931,2934],{"name":2932,"color":2933},"docs","0075ca",{"name":2868,"color":2869},4204,"`enhanceApp()` `ctx.router` is not a router instance","2024-10-26T17:17:21Z","https://github.com/vuejs/vitepress/issues/4204",0.73597676,{"description":2941,"labels":2942,"number":2947,"owner":2871,"repository":2872,"state":2873,"title":2948,"updated_at":2949,"url":2950,"score":2951},"### Is your feature request related to a problem? Please describe.\n\nvitepress支持markdown渲染成HTML,但是有的markdown里面有图床图片,想知道未来能不能够支持显示图床图片的功能。将图床图片配置到本地才能显示图片的方法,有点难受。\n\n### Describe the solution you'd like\n\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.",[2943,2946],{"name":2944,"color":2945},"need more info","bdbefc",{"name":2868,"color":2869},4496,"显示外部链接图片","2025-03-02T18:07:51Z","https://github.com/vuejs/vitepress/issues/4496",0.7376714,{"description":2953,"labels":2954,"number":2959,"owner":2871,"repository":2872,"state":2960,"title":2961,"updated_at":2962,"url":2963,"score":2964},"### Describe the bug\r\n\r\nDocs navigation is inconsistent.\r\nWhile reading **Guide**, you land at https://vitepress.dev/guide/what-is-vitepress.\r\nOpening https://vitepress.dev/guide brings to error 404 page.\r\n\r\n\r\n### Reproduction\r\n\r\n1. Browse: homepage\r\n2. Click link: Guide\r\n3. See: What is vitepress\r\n4. Edit url: \"/guide/what-is-vitepress\" to \"/guide\"\r\n5. See: Error 404\r\n\r\n### Expected behavior\r\n\r\nParent container routing page should be a container of chapters\r\n\r\n- Introduction\r\n- Writing\r\n- Customization\r\n- Experimental\r\n\r\nEach chapter should have an excerpt of the content, its page links either.\r\n\r\nIf \"it's too much\", `/guide` should simply redirect to default landing page `/guide/what-is-vitepress`\r\n\r\n### System Info\r\n\r\n```Text\r\nNot a software bug, docs navigation related.\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.",[2955,2956],{"name":2932,"color":2933},{"name":2957,"color":2958},"has-workaround","1B4515",4233,"closed","Docs: /guide path is missing (error 404)","2024-10-20T04:43:29Z","https://github.com/vuejs/vitepress/issues/4233",0.67438257,{"description":2966,"labels":2967,"number":2972,"owner":2871,"repository":2872,"state":2960,"title":2973,"updated_at":2974,"url":2975,"score":2976},"### Describe the bug\n\nIn alpha 3, when using code block language aliases, I receive this error: `The language 'my-lang-alias' is not loaded, falling back to 'txt' for syntax highlighting.`\n\nAliases worked correctly in alpha 2.\n\n### Reproduction\n\nStackBlitz repro here (code block is on the **Get Started** page):\n\n[https://stackblitz.com/edit/vite-eswufd7t?file=docs%2Fexample.md](https://stackblitz.com/edit/vite-eswufd7t?file=docs%2Fexample.md)\n\n### Expected behavior\n\nLanguage aliased added to **defineConfig** > **markdown** > **languageAlias** are available as code block languages.\n\n### System Info\n\n```Text\nSystem:\n OS: Linux 5.15 Ubuntu 24.04.1 LTS 24.04.1 LTS (Noble Numbat)\n CPU: (20) x64 12th Gen Intel(R) Core(TM) i7-12700T\n Memory: 23.13 GB / 31.19 GB\n Container: Yes\n Shell: 5.2.21 - /bin/bash\n Binaries:\n Node: 22.13.0 - /usr/bin/node\n npm: 10.9.2 - /usr/bin/npm\n pnpm: 9.6.0 - /usr/bin/pnpm\n npmPackages:\n vitepress: ^2.0.0-alpha.3 => 2.0.0-alpha.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.",[2968,2971],{"name":2969,"color":2970},"build","377ba8",{"name":2891,"color":2892},4581,"languageAlias broken in 2.0.0-alpha.3","2025-03-06T04:44:32Z","https://github.com/vuejs/vitepress/issues/4581",0.70007044,["Reactive",2978],{},["Set"],["ShallowReactive",2981],{"$fTRc1wZytZ_XrK4EfJfei_Sz-An4H4Yy6syhVxH_PVJc":-1,"$foFtrf0oMklRXnVl2487Hl_MMnsMBQB53a2z-Tm5SLVs":-1},"/vuejs/vitepress/4231"]