```\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",[2923],{"name":2868,"color":2869},4273,"How to use default Vue components elsewhere","2024-12-03T17:27:39Z","https://github.com/vuejs/vitepress/issues/4273",0.7676676,{"description":2930,"labels":2931,"number":2936,"owner":2871,"repository":2872,"state":2873,"title":2937,"updated_at":2938,"url":2939,"score":2940},"### 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.",[2932,2935],{"name":2933,"color":2934},"upstream","BF29ED",{"name":2868,"color":2869},4528,"Markdown Intellisense Randomly Breaks When Containing Latex","2025-03-02T18:07:44Z","https://github.com/vuejs/vitepress/issues/4528",0.7742188,{"description":2942,"labels":2943,"number":2947,"owner":2871,"repository":2872,"state":2948,"title":2949,"updated_at":2950,"url":2951,"score":2952},"### Describe the bug\r\n\r\nwhen I use 'npm run dev',it occurs the error of 'failed to start server. error:TypeError: section.titles.at is not a function',but the error is in 'node_moduls/vitepress/dist/node/serve-d0f912b9.js:36893:35',and the codes are the following:\r\n` async function indexAllFiles(files) {\r\n const documentsByLocale = /* @__PURE__ */ new Map();\r\n await Promise.all(\r\n files.filter((file) => fs$a.existsSync(file)).map(async (file) => {\r\n const fileId = getDocId(file);\r\n const sections = splitPageIntoSections(\r\n md.render(await fs$a.readFile(file, \"utf-8\"), createMarkdownEnv(file))\r\n );\r\n const locale = getLocaleForPath(file);\r\n let documents = documentsByLocale.get(locale);\r\n if (!documents) {\r\n documents = [];\r\n documentsByLocale.set(locale, documents);\r\n }\r\n documents.push(\r\n ...sections.map((section) => ({\r\n id: `${fileId}#${section.anchor}`,\r\n text: section.text,\r\n title: section.titles.at(-1),\r\n titles: section.titles.slice(0, -1)\r\n }))\r\n );\r\n })\r\n );\r\n for (const [locale, documents] of documentsByLocale) {\r\n const index = getIndexByLocale(locale);\r\n index.removeAll();\r\n await index.addAllAsync(documents);\r\n }\r\n debug$2(`\\u{1F50D}\\uFE0F Indexed ${files.length} files`);\r\n }`\r\n\r\n### Reproduction\r\n\r\ni try to delete 'node_moduls' and 'package.lock.json',and then use 'npm install' and 'npm run dev',but it is fail.\r\n\r\n### Expected behavior\r\n\r\nstart sucessfully\r\n\r\n### System Info\r\n\r\n```sh\r\n'package.json' :\r\n` \"dependencies\": {\r\n \"vitepress\": \"^1.0.0-beta.5\",\r\n \"vue\": \"^3.2.45\",\r\n \"vuepress-theme-vdoing\": \"^1.9.4\"\r\n }`\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.",[2944],{"name":2945,"color":2946},"bug: pending triage","e99695",2630,"closed","TypeError: section.titles.at is not a function","2023-07-24T00:04:50Z","https://github.com/vuejs/vitepress/issues/2630",0.681497,{"description":2954,"labels":2955,"number":2957,"owner":2871,"repository":2872,"state":2948,"title":2958,"updated_at":2959,"url":2960,"score":2961},"### Describe the bug\r\n\r\n```md\r\n*HEXSTR* := { 8 or 16 hex digits (4 / 8 bytes) }\r\n```\r\n===>\r\n```html\r\n\u003C!-- [vitepress] Internal server error: Duplicate attribute. -->\r\n\u003Cp 8=\"\" or=\"\" 16=\"\" hex=\"\" digits=\"\" (4=\"\" 8=\"\" bytes)=\"\">\u003Cem>HEXSTR\u003C/em> :=\u003C/p>\r\n```\r\nI viewed the doc: https://vitepress.dev/guide/using-vue. I see the interpolation `{{ }}` will be converted.\r\nBut this situation should be abnormal.\r\n\r\n### Reproduction\r\n\r\n```md\r\n*HEXSTR* := { 8 or 16 hex digits (4 / 8 bytes) }\r\n```\r\n\r\nhttps://stackblitz.com/edit/vite-hsfy9m?file=docs%2Fexample.md\r\n\r\n### Expected behavior\r\n\r\n```html\r\n\u003Cp>\u003Cem>HEXSTR\u003C/em> := { 8 or 16 hex digits (4 / 8 bytes) }\u003C/p>\r\n```\r\n\r\n### System Info\r\n\r\n```Text\r\nSystem:\r\n OS: macOS 14.2.1\r\n CPU: (8) arm64 Apple M1 Pro\r\n Memory: 387.17 MB / 16.00 GB\r\n Shell: 5.9 - /bin/zsh\r\n Binaries:\r\n Node: 20.11.1 - ~/.x-cmd.root/local/data/pkg/sphere/X/l/j/h/bin/node\r\n npm: 10.2.4 - ~/.x-cmd.root/local/data/pkg/sphere/X/l/j/h/bin/npm\r\n pnpm: 8.9.2 - ~/project/lteam/x-cmd/official-doc/node_modules/.bin/pnpm\r\n bun: 1.0.24 - ~/.x-cmd.root/local/data/pkg/sphere/X/l/j/h/bin/bun\r\n Browsers:\r\n Chrome: 122.0.6261.94\r\n Safari: 17.2.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] 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.",[2956],{"name":2945,"color":2946},3623,"error convert attribute by `{ }` | Internal server error: Duplicate attribute","2024-03-10T00:04:58Z","https://github.com/vuejs/vitepress/issues/3623",0.68412894,{"description":2963,"labels":2964,"number":2968,"owner":2871,"repository":2872,"state":2948,"title":2969,"updated_at":2970,"url":2971,"score":2972},"### Is your feature request related to a problem? Please describe.\r\n\r\nConveniently use content-adaptive layout in components on the home page\r\n\r\n### Describe the solution you'd like\r\n\r\n`.vitepress/theme/index.ts`:\r\n```ts\r\nimport HomePage from './component/HomePage'\r\n\r\nexport default {\r\n Layout: () => {\r\n return h(Theme.Layout, null, {\r\n 'home-features-after': () => h(HomePage),\r\n })\r\n },\r\n```\r\n\r\n---\r\n\r\n`HomePage.vue`:\r\n\r\n```html\r\n\u003Cscript setup lang=\"ts\">\r\nimport{ VPHomeContent } from 'vitepress/theme'\r\n\u003C/script>\r\n\r\n\u003Ctemplate>\r\n\t\u003CVPHomeContent>\r\n\t\t\u003C!-- my custom content -->\r\n\t\u003C/VPHomeContent>\r\n\u003C/template>\r\n```\r\n\r\n### Describe alternatives you've considered\r\n\r\n_No response_\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.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.",[2965],{"name":2966,"color":2967},"contribution welcome","11E4B8",3954,"[New feature] export `VPHomeContent` to provide content-adaptive layout","2024-06-22T04:41:46Z","https://github.com/vuejs/vitepress/issues/3954",0.7350977,["Reactive",2974],{},["Set"],["ShallowReactive",2977],{"$fTRc1wZytZ_XrK4EfJfei_Sz-An4H4Yy6syhVxH_PVJc":-1,"$fe0_6IkA_LpUT-RGefxBeyzIzudPybQWvFxakpArGurI":-1},"/vuejs/vitepress/4495"]