```\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",[3020],{"name":3021,"color":3022},"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.7658459,{"description":3032,"labels":3033,"number":3038,"owner":3024,"repository":3025,"state":3026,"title":3039,"updated_at":3040,"url":3041,"score":3042},"I hit another case of #449 by including the following in a markdown file. The workaround which linked to #662 worked for me. Perhaps this should be off by default? Or detect the compilation error and bring a suggestion? The XML I included seems pretty straightforward. Would have been very hard to diagnose if I hadn't been doing lots of searches against the issues here. \r\n\r\n```xml\r\n\u003Ckeyboard locale=\"mt\" conformsTo=\"techpreview\">\r\n \u003Ckeys>\r\n \u003Ckey id=\"hmaqtugha\" to=\"ħ\" />\r\n \u003Ckey id=\"that\" to=\"ថា\" />\r\n \u003C/keys>\r\n\r\n \u003Clayers form=\"hardware\">\r\n \u003Clayer id=\"base\">\r\n \u003Crow keys=\"hmaqtugha that\" />\r\n \u003C/layer>\r\n \u003C/layers>\r\n\r\n\u003C/keyboard>\r\n```\r\n\r\nSymptom is an error deep inside vue\r\n\r\n```\r\n5:26:34 PM [vitepress] Internal server error: Duplicate attribute.\r\n Plugin: vite:vue\r\n File: /Users/srl295/src/codehivetx.us/en/posts/2022-kbd-progress.md:22:69\r\n 22 | \u003Ckeys>\r\n 23 | \u003Ckey id=\"hmaqtugha\" to=\"ħ\" />\r\n 24 | \u003Ckey id=\"that\" to=\"ថា\" />\r\n | ^\r\n 25 | \u003C/keys>\r\n 26 | \r\n at createCompilerError (/Users/srl295/src/codehivetx.us/node_modules/@vue/compiler-core/dist/compiler-core.cjs.js:1327:17)\r\n at emitError (/Users/srl295/src/codehivetx.us/node_modules/@vue/compiler-core/dist/compiler-core.cjs.js:2805:5)\r\n at Object.onattribnameend (/Users/srl295/src/codehivetx.us/node_modules/@vue/compiler-core/dist/compiler-core.cjs.js:2290:7)\r\n at Tokenizer.handleAttrNameEnd (/Users/srl295/src/codehivetx.us/node_modules/@vue/compiler-core/dist/compiler-core.cjs.js:872:14)\r\n at Tokenizer.stateInAttrName (/Users/srl295/src/codehivetx.us/node_modules/@vue/compiler-core/dist/compiler-core.cjs.js:812:12)\r\n at Tokenizer.parse (/Users/srl295/src/codehivetx.us/node_modules/@vue/compiler-core/dist/compiler-core.cjs.js:1065:16)\r\n at Object.baseParse (/Users/srl295/src/codehivetx.us/node_modules/@vue/compiler-core/dist/compiler-core.cjs.js:2844:13)\r\n at Object.parse (/Users/srl295/src/codehivetx.us/node_modules/@vue/compiler-dom/dist/compiler-dom.cjs.js:698:23)\r\n at Object.parse$2 [as parse] (/Users/srl295/src/codehivetx.us/node_modules/@vue/compiler-sfc/dist/compiler-sfc.cjs.js:1846:24)\r\n at createDescriptor (file:///Users/srl295/src/codehivetx.us/node_modules/@vitejs/plugin-vue/dist/index.mjs:74:43) (x2)\r\n```\r\n",[3034,3037],{"name":3035,"color":3036},"build","377ba8",{"name":3021,"color":3022},3401,"better stack trace / error message for markdown-it-attrs failures","2025-03-02T18:10:00Z","https://github.com/vuejs/vitepress/issues/3401",0.77097654,{"description":3044,"labels":3045,"number":3050,"owner":3024,"repository":3025,"state":3026,"title":3051,"updated_at":3052,"url":3053,"score":3054},"### Describe the bug\n\nI've followed https://vitepress.dev/guide/using-vue#vs-code-intellisense-support to enable intellisense in markdown files. But current intellisense may not work properly when there're Latex contents.\n\n### Reproduction\n\nIt's kinda hard to reproduce though, it randomly occurs for me. And adding spaces in between may or may not resolve the intellisense error. But the problematic intellisense tends to happen when there's `\u003Csomevar\\somecommand` (invalid character), `\\ ` (':' is expected), `xxx$.` (parsed as variable)\n\nUsed markdown from https://github.com/vuejs/vitepress/issues/4290 as the template:\n```markdown\n---\nhello: world\n---\n\n\u003Cscript setup>\nimport { ref } from 'vue'\n\nconst count = ref(0)\n\u003C/script>\n\n## Title\n\nThe count is: {{ count }}\n\n\u003Cbutton :class=\"$style.button\" @click=\"count++\">Increment\u003C/button>\n\n$$\n\u003Cp_i\\leq\n$$\n\n$xxx$.\n\n$\\ $\n\n\u003Cstyle module>\n.button {\n color: red;\n font-weight: bold;\n}\n\u003C/style>\n```\n\n\n\n### Expected behavior\n\nThe intellisense in markdown files should be more robust and can handle these cases when Latex content is presented in the posts.\n\n### System Info\n\n```Text\nSystem:\n OS: Windows 11 10.0.26100\n CPU: (16) x64 AMD Ryzen 7 7435HS\n Memory: 7.24 GB / 23.74 GB\n Binaries:\n Node: 23.6.1 - D:\\Scoop\\apps\\nodejs\\current\\node.EXE\n npm: 10.9.2 - D:\\Scoop\\apps\\nodejs\\current\\npm.CMD\n pnpm: 10.0.0 - D:\\Scoop\\shims\\pnpm.EXE\n Browsers:\n Edge: Chromium (130.0.2849.68)\n Internet Explorer: 11.0.26100.1882\n npmPackages:\n vitepress: 1.5.0 => 1.5.0\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.",[3046,3049],{"name":3047,"color":3048},"upstream","BF29ED",{"name":3021,"color":3022},4528,"Markdown Intellisense Randomly Breaks When Containing Latex","2025-03-02T18:07:44Z","https://github.com/vuejs/vitepress/issues/4528",0.7759922,{"description":3056,"labels":3057,"number":3059,"owner":3024,"repository":3025,"state":3026,"title":3060,"updated_at":3061,"url":3062,"score":3063},"### 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.",[3058],{"name":3021,"color":3022},3793,".vitepress dir Whether you can rename it ? ","2024-06-23T07:11:50Z","https://github.com/vuejs/vitepress/issues/3793",0.77824646,{"description":3065,"labels":3066,"number":3067,"owner":3024,"repository":3025,"state":3068,"title":3069,"updated_at":3070,"url":3071,"score":3072},"### Describe the bug\n\nClick on the search box and the page will look right offset,This problem also exists in Vue,This is caused by the scroll bar on the right。\n\n### Reproduction\n\nClick on the search box.\n\n### Expected behavior\n\nClick the search box, the page does not offset\n\n### System Info\n\n```Text\nall\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.",[],3589,"closed","searchbox","2024-03-24T00:05:34Z","https://github.com/vuejs/vitepress/issues/3589",0.71122104,{"description":3074,"labels":3075,"number":3076,"owner":3024,"repository":3025,"state":3068,"title":3077,"updated_at":3078,"url":3079,"score":3080},"### Describe the bug\n\nVitePress ignores the `vite.clearScreen: false` option - running `vitepress build` will clear the screen regardless.\r\n\r\nThis is causing issues in our turbo build monorepo - when building several packages at once, VitePress's clear screen clears the log output for packages that were built before it.\n\n### Reproduction\n\nhttps://stackblitz.com/edit/vite-dtu41vnr?file=package.json\r\n\r\n1. Install dependencies\r\n2. Run `npx vitepress build docs`\r\n3. See that screen is cleared, despite vite.clearScreen:false in docs/.vitepress/config.ts\n\n### Expected behavior\n\nScreen should not be cleared if vite.clearScreen:false is set\n\n### System Info\n\n```Text\nSystem:\r\n OS: macOS 15.2\r\n CPU: (10) arm64 Apple M1 Pro\r\n Memory: 78.41 MB / 32.00 GB\r\n Shell: 5.9 - /bin/zsh\r\n Binaries:\r\n Node: 22.12.0 - ~/.local/state/fnm_multishells/64248_1736184870871/bin/node\r\n Yarn: 1.22.19 - ~/.local/state/fnm_multishells/64248_1736184870871/bin/yarn\r\n npm: 10.9.0 - ~/.local/state/fnm_multishells/64248_1736184870871/bin/npm\r\n Browsers:\r\n Chrome: 131.0.6778.205\r\n Safari: 18.2\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.",[],4468,"`vite.clearScreen: false` option is ignorred","2025-01-14T04:42:24Z","https://github.com/vuejs/vitepress/issues/4468",0.73825824,{"description":3082,"labels":3083,"number":3087,"owner":3024,"repository":3025,"state":3068,"title":3088,"updated_at":3089,"url":3090,"score":3091},"### Describe the bug\n\nI want to use VitePress to generate some static HTML pages, and I hope these HTML files can be opened directly with a browser by double-clicking, without the need for a web server. But after run `npm run docs:build`, and open the HTML file in Chrome, there came an error in Network panel, `Name: inter-roman-latin.bvIUbFQP.woff2`, `Status: (failed)net::ERR_FILE_NOT_FOUND`.\r\n\r\n\r\nIn `.vitepress/dist/assets/style.SZl3QJfs.css`, you can see the url of file `inter-roman-latin.bvIUbFQP.woff2` is `/assets/inter-roman-latin.bvIUbFQP.woff2` but not `./assets/inter-roman-latin.bvIUbFQP.woff2`. This might be the cause of the error.\r\n\r\n\r\n\n\n### Reproduction\n\nRun the command:\r\n\r\n```\r\nnpm install --save-dev vitepress\r\n\r\nnpx vitepress init\r\n\r\n Where should VitePress initialize the config?\r\n ./\r\n\r\n Site title:\r\n My Awesome Project\r\n\r\n Site description:\r\n A VitePress Site\r\n\r\n Theme:\r\n Default Theme (Out of the box, good-looking docs)\r\n\r\n Use TypeScript for config and theme files?\r\n No\r\n\r\n Add VitePress npm scripts to package.json?\r\n Yes\r\n```\r\n\r\nEdit `.vitepress/config.mjs`, add `base : '.'` and `mpa : true`:\r\n\r\n```\r\nimport { defineConfig } from 'vitepress'\r\n\r\n// https://vitepress.dev/reference/site-config\r\nexport default defineConfig({\r\n title: \"My Awesome Project\",\r\n description: \"A VitePress Site\",\r\n themeConfig: {\r\n // https://vitepress.dev/reference/default-theme-config\r\n nav: [\r\n { text: 'Home', link: '/' },\r\n { text: 'Examples', link: '/markdown-examples' }\r\n ],\r\n\r\n sidebar: [\r\n {\r\n text: 'Examples',\r\n items: [\r\n { text: 'Markdown Examples', link: '/markdown-examples' },\r\n { text: 'Runtime API Examples', link: '/api-examples' }\r\n ]\r\n }\r\n ],\r\n\r\n socialLinks: [\r\n { icon: 'github', link: 'https://github.com/vuejs/vitepress' }\r\n ]\r\n },\r\n base : '.',\r\n mpa : true\r\n})\r\n```\r\n\r\nAnd build the docs:\r\n\r\n```\r\nnpm run docs:build\r\n```\r\n\r\nOpen the file `.vitepress/dist/api-examples.html` in Chrome by double-clicking, and then open the Network panel of Chrome's DevTools to see the error.\n\n### Expected behavior\n\nAfter set `base : '.'` in `config.mjs`, the url of assets should start with `./assets/`, but not `/assets/`.\r\n\n\n### System Info\n\n```Text\nSystem:\r\n OS: Linux 6.1 Debian GNU/Linux 12 (bookworm) 12 (bookworm)\r\n CPU: (4) x64 Intel(R) Core(TM) i5-5200U CPU @ 2.20GHz\r\n Memory: 10.44 GB / 15.52 GB\r\n Container: Yes\r\n Shell: 3.6.0 - /usr/bin/fish\r\n Binaries:\r\n Node: 18.17.1 - ~/dev/nodejs/nodejs/bin/node\r\n npm: 10.4.0 - ~/dev/nodejs/nodejs/bin/npm\r\n Browsers:\r\n Chrome: 112.0.5615.165\r\n npmPackages:\r\n vitepress: ^1.0.0-rc.42 => 1.0.0-rc.42\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.",[3084],{"name":3085,"color":3086},"wont fix","EDEED1",3563,"The link in css file is not correct after setting base to '.' in config.mjs","2024-02-16T00:04:27Z","https://github.com/vuejs/vitepress/issues/3563",0.73847723,{"description":3093,"labels":3094,"number":3098,"owner":3024,"repository":3025,"state":3068,"title":3099,"updated_at":3100,"url":3101,"score":3102},"### Describe the bug\n\nThere is a SSR error on the production build output that happens with a specific user navigation (see below for reproduction steps).\r\n\r\nWhen a `\u003CTeleport />` has a conditional rendered children using `v-if`, the following error is thrown:\r\n\r\n```shell\r\nTypeError: Cannot read properties of null (reading 'nextSibling')\r\n at nextSibling (framework.w6niQ9Mc.js:17:682)\r\n at kt (framework.w6niQ9Mc.js:13:29640)\r\n at N (framework.w6niQ9Mc.js:13:21176)\r\n at v (framework.w6niQ9Mc.js:13:23760)\r\n at Object.process (framework.w6niQ9Mc.js:13:37355)\r\n at N (framework.w6niQ9Mc.js:13:21489)\r\n at v (framework.w6niQ9Mc.js:13:23760)\r\n at O (framework.w6niQ9Mc.js:13:23130)\r\n at L (framework.w6niQ9Mc.js:13:22048)\r\n at N (framework.w6niQ9Mc.js:13:21426)\r\n```\n\n### Reproduction\n\nMinimal reproduction link: https://stackblitz.com/edit/vitepress-nextsibling-ssr-error\r\n\r\nSee the `TeleportedComponent.vue` and `error-demo.md` files.\r\n\r\n___\r\n\r\n**Reproduction steps**:\r\n\r\n- Create a production build (`npm run docs:build`)\r\n- Serve the production (`npm run docs:dev`)\r\n- Go directly the URL where the custom component is imported\r\n- Interact with the custom component button to trigger the menu\r\n- An error is thrown in the console, the component doesn't work\r\n\r\nNow, this issue can be avoided if the user go to any other page that doesn't contain the component, and go back to this page.\n\n### Expected behavior\n\nThe conditional rendering of the children using a `v-if`, inside the `\u003CTeleport />`, should not cause any issues on the first page load.\n\n### System Info\n\n```Text\nSystem:\r\n OS: macOS 14.5\r\n CPU: (8) arm64 Apple M1 Pro\r\n Memory: 95.19 MB / 16.00 GB\r\n Shell: 5.9 - /bin/zsh\r\n Binaries:\r\n Node: 20.14.0 - ~/.nvm/versions/node/v20.14.0/bin/node\r\n Yarn: 1.22.19 - ~/.yarn/bin/yarn\r\n npm: 10.7.0 - ~/.nvm/versions/node/v20.14.0/bin/npm\r\n pnpm: 8.15.1 - ~/Library/pnpm/pnpm\r\n Browsers:\r\n Brave Browser: 126.1.67.123\r\n Chrome: 126.0.6478.126\r\n Safari: 17.5\r\n npmPackages:\r\n vitepress: 1.2.3 => 1.2.3\n```\n\n\n### Additional context\n\nI've first noticed the issue when working on an open-source [vue3-select-component](https://github.com/TotomInc/vue3-select-component).\r\n\r\nE.g. go to https://vue3-select-component.vercel.app/demo/single-select.html and interact with the component. You'll see the same error thrown in the console.\r\n\r\nFor reference: https://github.com/TotomInc/vue3-select-component/issues/78\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.",[3095],{"name":3096,"color":3097},"need more info","bdbefc",3987,"SSR issue with Teleport and conditional rendering of its children (Cannot read properties of null (reading 'nextSibling'))","2024-07-04T04:41:55Z","https://github.com/vuejs/vitepress/issues/3987",0.74557,{"description":3104,"labels":3105,"number":3109,"owner":3024,"repository":3025,"state":3068,"title":3110,"updated_at":3111,"url":3112,"score":3113},"### Describe the bug\r\n\r\nYou can check Reproduction Url test.\r\n\r\nEverything works fine when I start the vite project(`apps/playground`) using `pnpm dev:playground`. It crashed when I started vitepress project(`apps/document`) using `pnpm dev:document`.\r\n\r\nMy monorepo project uses `node condition` to link the source code. You can check the `dev` field in `package.json` or `condition: [\"dev\"]` in `vite.config.ts` or `condition: [\"dev\"]` in `config.ts`.\r\n\r\n### Reproduction\r\n\r\nhttps://github.com/i7eo/monorepo-vitepress-bug-report\r\n\r\n### Expected behavior\r\n\r\nStart normally like a vite project(`apps/playground`)\r\n\r\n### System Info\r\n\r\n```Text\r\nSystem:\r\n OS: macOS 14.4.1\r\n CPU: (10) arm64 Apple M1 Max\r\n Memory: 3.61 GB / 64.00 GB\r\n Shell: 5.9 - /bin/zsh\r\n Binaries:\r\n Node: 20.12.2 - ~/.nvm/versions/node/v20.12.2/bin/node\r\n npm: 10.5.0 - ~/.nvm/versions/node/v20.12.2/bin/npm\r\n pnpm: 9.1.0 - ~/.nvm/versions/node/v20.12.2/bin/pnpm\r\n Watchman: 2024.04.08.00 - /opt/homebrew/bin/watchman\r\n Browsers:\r\n Chrome: 124.0.6367.201\r\n Safari: 17.4.1\r\n Safari Technology Preview: 17.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.",[3106],{"name":3107,"color":3108},"bug: pending triage","e99695",3888,"Vitepress project in monorepo reports `Failed to resolve import \"xxx\"`","2024-05-22T04:41:52Z","https://github.com/vuejs/vitepress/issues/3888",0.7472244,{"description":3115,"labels":3116,"number":3118,"owner":3024,"repository":3025,"state":3068,"title":3119,"updated_at":3120,"url":3121,"score":3122},"### Describe the bug\n\n文章目录不显示一级标题\n\n### Reproduction\n\n```mts\r\nimport {withMermaid} from \"vitepress-plugin-mermaid\";\r\n// https://emersonbottero.github.io/vitepress-plugin-mermaid/guide/getting-started.html\r\n// https://vitepress.dev/reference/site-config\r\nimport {generateSidebar} from 'vitepress-sidebar';\r\n\r\nexport default withMermaid({\r\n title: \"DMP-Docs\",\r\n description: \"DMP-Docs\",\r\n themeConfig: {\r\n // https://vitepress.dev/reference/default-theme-config\r\n nav: [\r\n {text: 'Home', link: '/'},\r\n ],\r\n\r\n search: {\r\n provider: 'local'\r\n },\r\n sidebar: generateSidebar({\r\n documentRootPath: '/docs',\r\n }),\r\n socialLinks: [\r\n {icon: 'github', link: 'http://10.186.18.21/dmp-dev-newbie/caomingkang/DMP-DOC'}\r\n ],\r\n\r\n outline: 'deep'\r\n },\r\n // optionally, you can pass MermaidConfig\r\n mermaid: {\r\n // refer https://mermaid.js.org/config/setup/modules/mermaidAPI.html#mermaidapi-configuration-defaults for options\r\n },\r\n // optionally set additional config for plugin itself with MermaidPluginConfig\r\n mermaidPlugin: {\r\n class: \"mermaid my-class\", // set additional css classes for parent container\r\n },\r\n\r\n})\r\n\r\n\r\n\r\n\r\n\r\n\r\n```\n\n### Expected behavior\n\n显示一级目录导航\n\n### System Info\n\n```Text\nmacos 13\r\n \"vitepress\": \"^1.0.0-rc.29\",\n```\n\n\n### Additional context\n\n\u003Cimg width=\"1159\" alt=\"Xnip2023-11-22_18-52-26\" src=\"https://github.com/vuejs/vitepress/assets/55651847/e1924277-32d5-45bb-a609-763b0e672075\">\r\n\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.",[3117],{"name":3107,"color":3108},3234,"文章目录不显示一级标题","2023-12-01T00:05:07Z","https://github.com/vuejs/vitepress/issues/3234",0.7497181,["Reactive",3124],{},["Set"],["ShallowReactive",3127],{"$fTRc1wZytZ_XrK4EfJfei_Sz-An4H4Yy6syhVxH_PVJc":-1,"$fNAb-HrwewcPkus6xL_qKbRRmsMJtaDnA8o6hxIlJ_Bs":-1},"/vuejs/vitepress/3643"]