```\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.7240859,{"description":2879,"labels":2880,"number":2885,"owner":2871,"repository":2872,"state":2873,"title":2886,"updated_at":2887,"url":2888,"score":2889},"### Describe the bug\n\nWhen using a computed value as a prop, that value is only applied once at build, it's not changed during pageload if it differs.\r\n\r\nFor example, when using a computed value to determine the current theme, this will be lightmode on the server, but the user may have dark mode set in their preferences.\r\n\r\nThe `isDark` composable then returns `dark` on the user's machine, but the static HTML has `light` bound to it, and that doesn't change until the `isDark` composable changes state again.\n\n### Reproduction\n\nWebsite: https://lenni009.github.io/vitepress-computed-bug/\r\n\r\nMinimal repo with component: https://github.com/Lenni009/vitepress-computed-bug/blob/main/index.md?plain=1\n\n### Expected behavior\n\nThe application state should be applied to the HTML at pageload, so there are no mismatches.\r\n\r\nIn this case, the text background should be black if the user prefers dark.\n\n### System Info\n\n```Text\nSystem:\r\n OS: Windows 10 10.0.19045\r\n CPU: (8) x64 Intel(R) Core(TM) i7-7700HQ CPU @ 2.80GHz\r\n Memory: 5.45 GB / 15.96 GB\r\n Binaries:\r\n Node: 20.11.1 - C:\\Program Files\\nodejs\\node.EXE\r\n npm: 10.3.0 - C:\\Program Files\\nodejs\\npm.CMD\r\n Browsers:\r\n Chrome: 123.0.6312.59\r\n Edge: Chromium (123.0.2420.53)\r\n Internet Explorer: 11.0.19041.3636\r\n npmPackages:\r\n vitepress: ^1.0.1 => 1.0.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.",[2881,2884],{"name":2882,"color":2883},"upstream","BF29ED",{"name":2868,"color":2869},3699,"Computed prop is not changed on pageload","2025-03-02T18:09:30Z","https://github.com/vuejs/vitepress/issues/3699",0.7389904,{"description":2891,"labels":2892,"number":2897,"owner":2871,"repository":2872,"state":2873,"title":2898,"updated_at":2899,"url":2900,"score":2901},"### Is your feature request related to a problem? Please describe.\r\n\r\nI would like to show a text in the footer like:\r\n\r\n`Edited at ${updatedAt} (${commitHash})`.\r\n\r\n\r\n### Describe the solution you'd like\r\n\r\n`updatedAt` is being fetched from this [`getGitTimestamp`](https://github.com/vuejs/vitepress/blob/4c2300318952bfdaabd766a6f16f26419ee854da/src/node/utils/getGitTimestamp.ts#L4) function.\r\n\r\nI would like to propose a new function called `getCommitHash` function which also receives a `file: string` as an argument called `updatedCommitHash` and then add it to the [`page` type](https://github.com/vuejs/vitepress/blob/54042ef5760e0af5590b616d909e7f23effedc22/types/shared.d.ts#L8-L19)\r\n\r\n### Describe alternatives you've considered\r\n\r\nI am going to built this code for my own `vitepress` project, but I think it might be beneficial for other pepole.\r\n\r\n### Additional context\r\n\r\nI would like to make a PR if we agree this is a good thing to add to `vitepress`. \r\n\r\nFirst, I would like to hear an OK from the maintainers. \r\n\r\nPD: Suggest better names as I think my proposed names are not very descriptive 😄 \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.dev).\r\n- [X] Read the [Contributing Guidelines](https://github.com/vuejs/vitepress/blob/main/.github/contributing.md).\r\n- [X] Check that there isn't already an issue that asks for the same feature to avoid creating a duplicate.",[2893,2896],{"name":2894,"color":2895},"has-workaround","1B4515",{"name":2868,"color":2869},3520,"Add `updatedCommitHash` to the `page` object","2025-03-02T18:09:45Z","https://github.com/vuejs/vitepress/issues/3520",0.74074537,{"description":2903,"labels":2904,"number":2907,"owner":2871,"repository":2872,"state":2873,"title":2908,"updated_at":2909,"url":2910,"score":2911},"### 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.",[2905,2906],{"name":2882,"color":2883},{"name":2868,"color":2869},3604,"algolia搜索框在输入关键字时会中断输入法拼写","2024-04-12T01:59:21Z","https://github.com/vuejs/vitepress/issues/3604",0.741253,{"description":2913,"labels":2914,"number":2916,"owner":2871,"repository":2872,"state":2873,"title":2917,"updated_at":2918,"url":2919,"score":2920},"### Is your feature request related to a problem? Please describe.\r\n\r\nI've added an app level enhancement to my docs site which ensures only the active sidebar group is open when navigating through the site:\r\n\r\n- https://spectre-org.github.io/spectre-docs/docs/get-started/\r\n\r\nThe [iles](https://iles.pages.dev/guide) framework has the same functionality.\r\n\r\nIt's pretty nice when you have long sections that would cause the menu to get overly-long and start scrolling.\r\n\r\n### Describe the solution you'd like\r\n\r\nIf you click a sidebar group header, or navigate to a page, the active sidebar group would open, and the others would close.\r\n\r\nIf you click a sidebar group toggle, the group would open / close, without affecting other groups.\r\n\r\nThe developer would opt-in to this functionality in `themeConfig.sidebar`. \r\n\r\n### Describe alternatives you've considered\r\n\r\nI've used `enhanceApp()`, a router handler, and some custom code to achieve this on my own site.\r\n\r\n### Additional context\r\n\r\nHappy to look at PRing this.\r\n\r\nIt seems that the `sidebar` composable is the place to start digging around.\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.dev).\r\n- [X] Read the [Contributing Guidelines](https://github.com/vuejs/vitepress/blob/main/.github/contributing.md).\r\n- [X] Check that there isn't already an issue that asks for the same feature to avoid creating a duplicate.",[2915],{"name":2868,"color":2869},4211,"[Feature Proposal] Expand only active sidebar group","2024-10-26T17:17:20Z","https://github.com/vuejs/vitepress/issues/4211",0.751855,{"description":2922,"labels":2923,"number":2928,"owner":2871,"repository":2872,"state":2873,"title":2929,"updated_at":2930,"url":2931,"score":2932},"### Is your feature request related to a problem? Please describe.\n\nabout #3851 \n\n### Describe the solution you'd like\n\nThe usage of environment variables, such as `process.env.VITE_EXTRA_EXTENSIONS`, warrants a more detailed description in the official documentation.\r\n\r\nIf I haven't seen the source code, I wouldn't know that VITE_EXTRA_EXTENSIONS is a string that concatenates different words with commas.\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.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.",[2924,2927],{"name":2925,"color":2926},"docs","0075ca",{"name":2868,"color":2869},3852,"Add docs regarding the environment vitepress used","2024-06-09T06:00:59Z","https://github.com/vuejs/vitepress/issues/3852",0.767576,{"description":2934,"labels":2935,"number":2940,"owner":2871,"repository":2872,"state":2873,"title":2941,"updated_at":2942,"url":2943,"score":2944},"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",[2936,2939],{"name":2937,"color":2938},"build","377ba8",{"name":2868,"color":2869},3401,"better stack trace / error message for markdown-it-attrs failures","2025-03-02T18:10:00Z","https://github.com/vuejs/vitepress/issues/3401",0.7698966,{"description":2946,"labels":2947,"number":2948,"owner":2871,"repository":2872,"state":2949,"title":2950,"updated_at":2951,"url":2952,"score":2953},"### 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.6797576,{"description":2955,"labels":2956,"number":2959,"owner":2871,"repository":2872,"state":2949,"title":2960,"updated_at":2961,"url":2962,"score":2963},"### Describe the bug\n\nI am using a markdown-it plugin to add classes to `\u003Ctable>` tags. This was broken by #3932.\r\n\r\nIf you look at: https://github.com/vuejs/vitepress/pull/3932/files#diff-332834eb76757b8e31926e411cef34f7207564d0bf5fd00a185b41d97b3403bf\r\n```\r\n md.renderer.rules.table_open = function (tokens, idx, options, env, self) {\r\n return '\u003Ctable tabindex=\"0\">\\n'\r\n }\r\n```\r\n\r\nThis breaks the chaining of any other modifications to the table_open rule. My understanding is that you should use the methods on token to modify the token and then chain to the existing rule. This post has a decent description: https://publishing-project.rivendellweb.net/customizing-markdown-it/#adding-classes-to-list-and-list-items\r\n\r\nIt looks like the overriding of `math_blocks` further down in the file _does_ chain the original renderer.\n\n### Reproduction\n\nIn `config.mts`\r\n\r\n```\r\nimport markdownItClass from '@toycode/markdown-it-class'\r\n...\r\nexport default defineConfig({\r\n...\r\n markdown: {\r\n config: (md) => {\r\n md.use(markdownItClass, {table: ['table', 'table-striped']})\r\n },\r\n },\r\n})\r\n```\r\n\n\n### Expected behavior\n\nvitepress markdown.it plugin doesn't break other markdown.it plugin\n\n### System Info\n\n```Text\nSystem:\r\n OS: Windows 11 10.0.22631\r\n CPU: (16) x64 Intel(R) Core(TM) i9-10885H CPU @ 2.40GHz\r\n Memory: 9.01 GB / 31.75 GB\r\n Binaries:\r\n Node: 20.16.0 - C:\\Program Files\\nodejs\\node.EXE\r\n npm: 10.8.1 - C:\\Program Files\\nodejs\\npm.CMD\r\n pnpm: 9.5.0 - C:\\Program Files\\nodejs\\pnpm.CMD\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.",[2957,2958],{"name":2937,"color":2938},{"name":2868,"color":2869},4239,"Regression: #3932 breaks chaining of table_open markdown.it rules ","2025-03-16T04:43:43Z","https://github.com/vuejs/vitepress/issues/4239",0.7319158,{"description":2965,"labels":2966,"number":2970,"owner":2871,"repository":2872,"state":2949,"title":2971,"updated_at":2972,"url":2973,"score":2974},"### 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.",[2967],{"name":2968,"color":2969},"bug: pending triage","e99695",3234,"文章目录不显示一级标题","2023-12-01T00:05:07Z","https://github.com/vuejs/vitepress/issues/3234",0.73531884,["Reactive",2976],{},["Set"],["ShallowReactive",2979],{"$fTRc1wZytZ_XrK4EfJfei_Sz-An4H4Yy6syhVxH_PVJc":-1,"$fm8XPRagywLNLDhWo5I2IZkYA3H1YnCOigWxx2g7xChI":-1},"/vuejs/vitepress/3278"]