\r\n\u003C/template>\r\n\r\n\u003Cstyle lang=\"scss\">\r\n\r\n\u003C/style>\r\n```\r\n\n\n### Describe the solution you'd like\n\nCurrently, only when rendering Markdown or HTML directly can the `content` parameter be passed to load page content as needed. I hope that when using local files as build data and needing Vue components to render pages, data can also be loaded according to page parameters as needed.\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.",[],3269,"Can local file data be loaded on demand based on the page?","2023-12-14T00:04:41Z","https://github.com/vuejs/vitepress/issues/3269",0.71492916,{"description":2940,"labels":2941,"number":2942,"owner":2874,"repository":2875,"state":2898,"title":2943,"updated_at":2944,"url":2945,"score":2946},"### 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.7174665,{"description":2948,"labels":2949,"number":2953,"owner":2874,"repository":2875,"state":2898,"title":2954,"updated_at":2955,"url":2956,"score":2957},"### Describe the bug\r\n\r\nAn error appears in the browser console under the following conditions:\r\n\r\n- The site contains two or more locales \r\n- `Search provier: local` is enabled\r\n- There are pages that are present in one locale and absent from another\r\n\r\nIf `search provier: local` is disabled, there are no errors (and no search functionality of course)\r\nThe error sometimes (in dev mode) makes it impossible to further switch locales on the site.\r\nSearch works only in the `en` locale\r\n\r\nError text in production build:\r\n\r\n```txt\r\nframework.kynelX4h.js:1 Error: vitepress data not properly injected in app\r\n at Mc (framework.kynelX4h.js:1:83939)\r\n at Ta (theme._g5Wezsv.js:1:47657)\r\n```\r\n\r\nIn dev mode: \r\n\r\n```js\r\nruntime-core.esm-bundler.js:39 [Vue warn]: Unhandled error during execution of scheduler flush. This is likely a Vue internals bug. Please open an issue at https://github.com/vuejs/core .\r\n...\r\ndata.js?v=4f487e31:50 Uncaught (in promise) Error: vitepress data not properly injected in app\r\n at useData (data.js?v=4f487e31:50:15)\r\n at createTranslate (translation.js?v=4f487e31:6:29)\r\n\r\n// translations.js file \r\nimport {useData} from \"/@fs/S:/src/vue-faq/node_modules/.pnpm/vitepress@1.0.0-rc.32_@algolia+client-search@4.22.0_sass@1.69.7_search-insights@2.13.0_typescript@5.3.3/node_modules/vitepress/dist/client/theme-default/composables/data.js?v=4f487e31\";\r\n/**\r\n * @param themeObject Can be an object with `translations` and `locales` properties\r\n */\r\nexport function createTranslate(themeObject, defaultTranslations) {\r\n const {localeIndex} = useData(); // this line\r\n``` \r\n\r\n### Reproduction\r\n\r\nThe error can be seen on this website - https://vue-faq.org/en/misc/introduction.html\r\nJust try to change the language\r\n\r\nThis is the source code of the website - https://github.com/vuesence/vue-faq/blob/search-error/docs/.vitepress/config/index.ts\r\n\r\n### Expected behavior\r\n\r\nBrowser console should not contain any errors\r\n\r\n### System Info\r\n\r\n```Text\r\nChrome, vitepress 1.0.0-rc.32, Vite 3.4.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.",[2950],{"name":2951,"color":2952},"bug: pending triage","e99695",3423,"Error in console with two locales and local search","2024-01-15T00:04:50Z","https://github.com/vuejs/vitepress/issues/3423",0.72635394,{"description":2959,"labels":2960,"number":2961,"owner":2874,"repository":2875,"state":2898,"title":2962,"updated_at":2963,"url":2964,"score":2965},"### Describe the bug\r\n\r\nThanks for building vitepress!\r\n\r\nI have a vitepress website and I found that a custom vue component with [multiple root nodes](https://v3-migration.vuejs.org/new/fragments.html) will fail to render in production mode.\r\n\r\n### Reproduction\r\n\r\nhttps://github.com/ast-grep/ast-grep.github.io/tree/repro-vite\r\n\r\n```\r\ngit clone --branch repro-vite git@github.com:ast-grep/ast-grep.github.io.git\r\npnpm install\r\npnpm build\r\npnpm serve\r\n```\r\n\r\nThen visit localhost:4173\r\n\r\n### Expected behavior\r\n\r\nThe `Supported Languages` section, of which the [code is here](https://github.com/ast-grep/ast-grep.github.io/blob/repro-vite/website/src/homepage/Languages.vue), should render.\r\n\r\n\u003Cimg width=\"1115\" alt=\"image\" src=\"https://github.com/vuejs/vitepress/assets/2883231/2faa0688-df54-47a6-9e47-cc3e5f8f85ac\">\r\n\r\n\r\n### System Info\r\n\r\n```Text\r\nSystem:\r\n OS: macOS 12.6\r\n CPU: (8) arm64 Apple M1\r\n Memory: 81.77 MB / 16.00 GB\r\n Shell: 5.8.1 - /bin/zsh\r\n Binaries:\r\n Node: 16.20.1 - ~/Library/Caches/fnm_multishells/62761_1699555887568/bin/node\r\n Yarn: 1.22.19 - ~/Library/pnpm/yarn\r\n npm: 8.19.4 - ~/Library/Caches/fnm_multishells/62761_1699555887568/bin/npm\r\n pnpm: 8.6.3 - ~/Library/pnpm/pnpm\r\n Browsers:\r\n Chrome: 119.0.6045.123\r\n Safari: 15.6.1\r\n```\r\n\r\n\r\n### Additional context\r\n\r\nThe languages.vue has two root elements in the template.\r\n\r\nSource\r\n\u003Cimg width=\"405\" alt=\"image\" src=\"https://github.com/vuejs/vitepress/assets/2883231/e92eb6f2-1d61-4b3a-b65d-fa71502a675c\">\r\n\r\n\r\nActual rendering include zero language images: \r\n\u003Cimg width=\"753\" alt=\"image\" src=\"https://github.com/vuejs/vitepress/assets/2883231/8f7b4a16-06da-4587-83aa-5ded94ad0ab6\">\r\nWith HTML:\r\n\u003Cimg width=\"424\" alt=\"image\" src=\"https://github.com/vuejs/vitepress/assets/2883231/7a4fe317-db1b-429e-a1d1-4be2fa63f6bf\">\r\n\r\n----\r\n\r\nHowever, it looks like the static HTML built on server side is correct.\r\n\r\nRendering if JS is disabled\r\n\u003Cimg width=\"876\" alt=\"image\" src=\"https://github.com/vuejs/vitepress/assets/2883231/ab2ffe30-d9bd-4e0d-b2bb-d82e36540297\">\r\nActual HTML without JS\r\n\u003Cimg width=\"391\" alt=\"image\" src=\"https://github.com/vuejs/vitepress/assets/2883231/1af71121-dbae-4115-882e-ef348b931ca9\">\r\n\r\n---\r\nAlso, if I [avoid the multiple root nodes](https://github.com/ast-grep/ast-grep.github.io/blob/main/website/src/homepage/Languages.vue#L2), the [page looks like fine](https://ast-grep.github.io/).\r\n\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.",[],3199,"Multiple root nodes custom Vue element will fail to render in vitepress","2023-11-19T00:04:54Z","https://github.com/vuejs/vitepress/issues/3199",0.7304973,["Reactive",2967],{},["Set"],["ShallowReactive",2970],{"$fTRc1wZytZ_XrK4EfJfei_Sz-An4H4Yy6syhVxH_PVJc":-1,"$fIFFsx5PUoaSc5mxLemYTfY3l6Yj8QLgmxp4jAvxkrgw":-1},"/vuejs/vitepress/1558"]