\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.72872204,{"description":2913,"labels":2914,"number":2918,"owner":2872,"repository":2873,"state":2899,"title":2919,"updated_at":2920,"url":2921,"score":2922},"### Describe the bug\n\nbuild error:\r\nThe requested module 'vue' does not provide an export named 'default'\r\nfile:///Users/lee/Codes/Work/PanSoft/pan-ui-vue/apps/docs/.vitepress/.temp/index.gDrBdFYw.js:1\r\nimport require$$0, { defineComponent, createVNode, ref, computed, watch, Fragment, watchEffect, createTextVNode, toRaw, mergeModels, useModel, openBlock, createBlock, unref, mergeProps, createSlots, withCtx, normalizeClass, createElementBlock, createElementVNode, toDisplayString, renderList, renderSlot, normalizeProps, nextTick } from \"vue\";\r\n\r\nSyntaxError: The requested module 'vue' does not provide an export named 'default'\r\n at ModuleJob._instantiate (node:internal/modules/esm/module_job:132:21)\r\n at async ModuleJob.run (node:internal/modules/esm/module_job:214:5)\r\n at async ModuleLoader.import (node:internal/modules/esm/loader:329:24)\r\n at async build (file:///Users/lee/Codes/Work/PanSoft/pan-ui-vue/node_modules/.pnpm/vitepress@1.3.3_@algolia+client-search@4.24.0_@types+node@22.0.0_async-validator@4.2.5_less@4_vyupewqor5ionkpvva6zm6cw7u/node_modules/vitepress/dist/node/serve-lJPQ9bCN.js:47053:24)\n\n### Reproduction\n\n{\r\n \"name\": \"docs\",\r\n \"private\": true,\r\n \"scripts\": {\r\n \"dev\": \"vitepress dev\",\r\n \"docs:build\": \"vitepress build\",\r\n \"docs:preview\": \"vitepress preview\"\r\n },\r\n \"dependencies\": {\r\n \"@panui-vue/base\": \"workspace:*\",\r\n \"@panui-vue/pro\": \"workspace:*\",\r\n \"@panui-vue/icon\": \"workspace:*\",\r\n \"@panui-vue/excel\": \"workspace:*\",\r\n \"vue\": \"^3.4.31\",\r\n \"lodash-es\": \"^4.17.21\",\r\n \"@formily/vue\": \"^2.3.2\",\r\n \"dayjs\": \"1.11.12\"\r\n },\r\n \"devDependencies\": {\r\n \"@faker-js/faker\": \"^8.4.1\",\r\n \"@vitepress-demo-preview/component\": \"^2.3.2\",\r\n \"@vitepress-demo-preview/plugin\": \"^1.2.3\",\r\n \"postcss\": \"^8.4.40\",\r\n \"rollup-plugin-visualizer\": \"^5.12.0\",\r\n \"typescript\": \"^5.2.2\",\r\n \"vitepress\": \"^1.3.3\",\r\n \"@types/lodash-es\": \"^4.17.12\",\r\n \"@vitejs/plugin-vue-jsx\": \"^4.0.0\"\r\n }\r\n}\n\n### Expected behavior\n\nNormal build\n\n### System Info\n\n```Text\nSystem:\r\n OS: macOS 14.6.1\r\n CPU: (10) arm64 Apple M1 Pro\r\n Memory: 185.47 MB / 16.00 GB\r\n Shell: 5.9 - /bin/zsh\r\n Binaries:\r\n Node: 20.11.1 - ~/.nvm/versions/node/v20.11.1/bin/node\r\n npm: 10.2.4 - ~/.nvm/versions/node/v20.11.1/bin/npm\r\n pnpm: 9.7.1 - ~/.nvm/versions/node/v20.11.1/bin/pnpm\r\n Browsers:\r\n Chrome: 127.0.6533.120\r\n Edge: 127.0.2651.105\r\n Safari: 17.6\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.",[2915],{"name":2916,"color":2917},"need more info","bdbefc",4158,"SyntaxError: The requested module 'vue' does not provide an export named 'default'","2024-09-03T04:42:37Z","https://github.com/vuejs/vitepress/issues/4158",0.7387527,{"description":2924,"labels":2925,"number":2929,"owner":2872,"repository":2873,"state":2899,"title":2930,"updated_at":2931,"url":2932,"score":2933},"### Describe the bug\r\n\r\nFor example the page https://blog.jaggerwang.net/basicai-annotation-specification/ cannot access directly, but it's ok when add `index.html` suffix, and other pages did not have this problem, such as https://blog.jaggerwang.net/basicai-technical-architecture/ . So it seems related to the content of page?\r\n\r\n\u003Cimg width=\"1512\" alt=\"image\" src=\"https://github.com/vuejs/vitepress/assets/1255011/3a69f282-d002-4194-b7ca-3b3075616883\">\r\n\r\nIt's ok when running in local dev and preview mode, and there is no error showing in the browser console or terminal console.\r\n\r\n\u003Cimg width=\"1512\" alt=\"image\" src=\"https://github.com/vuejs/vitepress/assets/1255011/82b87b50-f21a-430e-bb4e-893eb3bf9c52\">\r\n\r\n### Reproduction\r\n\r\nProject structure:\r\n\r\n\u003Cimg width=\"1624\" alt=\"image\" src=\"https://github.com/vuejs/vitepress/assets/1255011/d3f2d9e0-5dc8-4344-9674-61433c5a8322\">\r\n\r\nAliyun OSS config:\r\n\r\n\u003Cimg width=\"1306\" alt=\"image\" src=\"https://github.com/vuejs/vitepress/assets/1255011/d30acd18-d20c-44f2-a872-61bd981d0bcb\">\r\n\r\nBuid with GitHub actions, but the html is same with local build.\r\n\r\n\u003Cimg width=\"1624\" alt=\"image\" src=\"https://github.com/vuejs/vitepress/assets/1255011/f57bef3c-2d76-47c4-b18a-4b4a7b696771\">\r\n\r\n### Expected behavior\r\n\r\nNo error.\r\n\r\n### System Info\r\n\r\n```Text\r\nAliyun OSS\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.",[2926],{"name":2927,"color":2928},"bug: pending triage","e99695",3322,"Refresh some pages with error \"Hydration completed but contains mismatches.\" when deployed on Aliyun OSS.","2023-12-21T00:04:35Z","https://github.com/vuejs/vitepress/issues/3322",0.7433572,{"description":2935,"labels":2936,"number":2937,"owner":2872,"repository":2873,"state":2899,"title":2938,"updated_at":2939,"url":2940,"score":2941},"### Is your feature request related to a problem? Please describe.\n\nWe have a relatively large documentation project with a lot of links between pages. The fact that Vitepress validates inter-document links and fails to build if there are errors while printing detailed information - that's great.\r\n\r\nHowever, it doesn't validate links to anchors within pages, like `refer to [Schema API](./api.md#schema)`. IDEs (VS Code & Web Storm) can't do this as well, also taking into account that they might have their own \"slugify\" mechanism for anchors. Also, I can't find markdown linting for that.\r\n\n\n### Describe the solution you'd like\n\nI did some research, and I found that it is now possible to get anchors data with the `markdown.anchor.callback` configuration option. I can't build my own validation on top of that because this callback doesn't give any information about the page it is executed for. I think Vitepress can use this option internally to collect all anchors for each page and validate all inter-page (and even in-page!) anchor links and throw an error / print a warning / give an opportunity to configure the behaviour for that case.\r\n\r\nI believe that this feature will improve the quality of Vitepress-based projects and will help developers keep anchor links up-to-date. Though, there might be design limitations I am not aware of that don't allow this feature to exist, at least as a default behaviour.\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.",[],2176,"Validate anchor links","2023-04-11T00:04:26Z","https://github.com/vuejs/vitepress/issues/2176",0.7454271,{"description":2943,"labels":2944,"number":2948,"owner":2872,"repository":2873,"state":2899,"title":2949,"updated_at":2950,"url":2951,"score":2952},"### 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.",[2945],{"name":2946,"color":2947},"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.7465363,{"description":2954,"labels":2955,"number":2957,"owner":2872,"repository":2873,"state":2899,"title":2958,"updated_at":2959,"url":2960,"score":2961},"### Describe the bug\n\nWhen I run `vitepress build docs`, an error comes out\r\n``` shell\r\nPS D:\\Ysh\\Repos\\ysh-ui-proj\\proj\\ysh-ui> npm run docs:build\r\n\r\n> ysh-ui@0.0.1 docs:build\r\n> vitepress build docs\r\n\r\nvitepress v1.0.0-alpha.4\r\n⠼ building client + server bundles...\r\n(!) Some chunks are larger than 500 KiB after minification. Consider:\r\n- Using dynamic import() to code-split the application\r\n- Use build.rollupOptions.output.manualChunks to improve chunking: https://rollupjs.org/guide/en/#outputmanualchunks\r\n- Adjust chunk size limit for this warning via build.chunkSizeWarningLimit.\r\n✓ building client + server bundles...\r\n✖ rendering pages...\r\nbuild error:\r\n ReferenceError: location is not defined\r\n at Module.\u003Canonymous> (D:\\Ysh\\Repos\\ysh-ui-proj\\proj\\ysh-ui\\docs\\.vitepress\\.temp\\app.js:4087:12)\r\n at Module._compile (node:internal/modules/cjs/loader:1095:14)\r\n at Object.Module._extensions..js (node:internal/modules/cjs/loader:1124:10)\r\n at Module.load (node:internal/modules/cjs/loader:975:32)\r\n at Function.Module._load (node:internal/modules/cjs/loader:816:12)\r\n at ModuleWrap.\u003Canonymous> (node:internal/modules/esm/translators:201:29)\r\n at ModuleJob.run (node:internal/modules/esm/module_job:183:25)\r\n at async Loader.import (node:internal/modules/esm/loader:178:24)\r\n at async renderPage (file:///D:/Ysh/Repos/ysh-ui-proj/proj/ysh-ui/node_modules/vitepress/dist/node/serve-05342c3d.js:39534:25)\r\n at async build (file:///D:/Ysh/Repos/ysh-ui-proj/proj/ysh-ui/node_modules/vitepress/dist/node/serve-05342c3d.js:39853:9)\r\n```\n\n### Reproduction\n\nI have import a component form `ysh-ui\\docs\\.vitepress\\theme\\components`, my component need load `location.hash` when create.\r\n``` ts\r\nlet hash: string = location.hash.slice(1);\r\n```\n\n### Expected behavior\n\nIs it the cause of SSR? \n\n### System Info\n\n```shell\nSystem:\r\n OS: Windows 10 10.0.19043\r\n CPU: (4) x64 Intel(R) Core(TM) i5-7500 CPU @ 3.40GHz\r\n Memory: 3.28 GB / 15.89 GB\r\n Binaries:\r\n Node: 16.5.0 - C:\\Program Files\\nodejs\\node.EXE \r\n Yarn: 1.22.19 - C:\\Program Files\\nodejs\\yarn.CMD \r\n npm: 7.19.1 - C:\\Program Files\\nodejs\\npm.CMD\r\n Browsers:\r\n Edge: Spartan (44.19041.1266.0), Chromium (103.0.1264.62)\r\n Internet Explorer: 11.0.19041.1566\r\n npmPackages:\r\n vitepress: ^1.0.0-alpha.4 => 1.0.0-alpha.4\n```\n\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.vuejs.org).\n- [X] Check that there isn't already an issue that reports the same bug to avoid creating a duplicate.",[2956],{"name":2927,"color":2928},1017,"location is not defined","2023-01-21T14:30:21Z","https://github.com/vuejs/vitepress/issues/1017",0.7467469,{"description":2963,"labels":2964,"number":2966,"owner":2872,"repository":2873,"state":2899,"title":2967,"updated_at":2968,"url":2969,"score":2970},"### Describe the bug\r\n\r\nAttempting to run `vitepress build docs` when there exists a file `docs/**/arguments.md` results in a crash.\r\n```shell\r\n$ yarn vitepress build docs\r\nyarn run v1.22.19\r\n$ /home/.../website/node_modules/.bin/vitepress build docs\r\nvitepress v1.0.0-alpha.4\r\n⠇ building client + server bundles...[vite:esbuild-transpile] Transform failed with 1 error:\r\narguments.md.js:21:4: ERROR: Declarations with the name \"arguments\" cannot be used in strict mode\r\n\r\nDeclarations with the name \"arguments\" cannot be used in strict mode\r\n19 | return _sfc_setup ? _sfc_setup(props, ctx) : undefined\r\n20 | };\r\n21 | var arguments = /*#__PURE__*/pluginVue_exportHelper._export_sfc(_sfc_main, [['ssrRender',_sfc_ssrRender]]);\r\n | ^\r\n22 | \r\n23 | exports.__pageData = __pageData;\r\n\r\n✖ building client + server bundles...\r\n[vite:esbuild-transpile] Transform failed with 1 error:\r\nassets/arguments.md.88297d47.js:14:4: ERROR: Declarations with the name \"arguments\" cannot be used in an ECMAScript module\r\n\r\nDeclarations with the name \"arguments\" cannot be used in an ECMAScript module\r\n12 | return (openBlock(), createElementBlock(\"div\", null, _hoisted_2))\r\n13 | }\r\n14 | var arguments = /*#__PURE__*/_export_sfc(_sfc_main, [['render',_sfc_render]]);\r\n | ^\r\n15 | \r\n16 | export { __pageData, arguments as default };\r\n\r\nbuild error:\r\n Error: Transform failed with 1 error:\r\narguments.md.js:21:4: ERROR: Declarations with the name \"arguments\" cannot be used in strict mode\r\n at failureErrorWithLog (/home/.../website/node_modules/esbuild/lib/main.js:1615:15)\r\n at /home/.../website/node_modules/esbuild/lib/main.js:1404:29\r\n at /home/.../website/node_modules/esbuild/lib/main.js:669:9\r\n at handleIncomingPacket (/home/.../website/node_modules/esbuild/lib/main.js:766:9)\r\n at Socket.readFromStdout (/home/.../website/node_modules/esbuild/lib/main.js:635:7)\r\n at Socket.emit (node:events:527:28)\r\n at addChunk (node:internal/streams/readable:315:12)\r\n at readableAddChunk (node:internal/streams/readable:289:9)\r\n at Socket.Readable.push (node:internal/streams/readable:228:10)\r\n at Pipe.onStreamRead (node:internal/stream_base_commons:190:23) {\r\n errors: [\r\n {\r\n detail: undefined,\r\n id: '',\r\n location: [Object],\r\n notes: [Array],\r\n pluginName: '',\r\n text: 'Declarations with the name \"arguments\" cannot be used in strict mode'\r\n }\r\n ],\r\n warnings: [],\r\n frame: '\\n' +\r\n '\\x1B[33mDeclarations with the name \"arguments\" cannot be used in strict mode\\x1B[39m\\n' +\r\n '19 | return _sfc_setup ? _sfc_setup(props, ctx) : undefined\\n' +\r\n '20 | };\\n' +\r\n \"21 | var arguments = /*#__PURE__*/pluginVue_exportHelper._export_sfc(_sfc_main, [['ssrRender',_sfc_ssrRender]]);\\n\" +\r\n ' | ^\\n' +\r\n '22 | \\n' +\r\n '23 | exports.__pageData = __pageData;\\n',\r\n loc: {\r\n column: 4,\r\n file: 'arguments.md.js',\r\n length: 9,\r\n line: 21,\r\n lineText: \"var arguments = /*#__PURE__*/pluginVue_exportHelper._export_sfc(_sfc_main, [['ssrRender',_sfc_ssrRender]]);\",\r\n namespace: '',\r\n suggestion: ''\r\n },\r\n code: 'PLUGIN_ERROR',\r\n plugin: 'vite:esbuild-transpile',\r\n hook: 'renderChunk'\r\n}\r\n```\r\n\r\n### Reproduction\r\n\r\nTo reproduce, create a file called `arguments.md` with any content inside the vitepress `docs` folder (or other target).\r\nThen, run `vitepress build \u003Cfolder>`, and the error will occur.\r\n\r\n### Expected behavior\r\n\r\nThe expected behaviour is to generate an `arguments.html` file.\r\n\r\n### System Info\r\n\r\n```shell\r\nSystem:\r\n OS: Linux 5.18 Arch Linux\r\n CPU: (12) x64 AMD Ryzen 5 2600X Six-Core Processor\r\n Memory: 18.11 GB / 31.28 GB\r\n Container: Yes\r\n Shell: 5.9 - /usr/bin/zsh\r\n Binaries:\r\n Node: 16.16.0 - /usr/bin/node\r\n Yarn: 1.22.19 - /usr/bin/yarn\r\n npm: 8.14.0 - /usr/bin/npm\r\n Browsers:\r\n Chromium: 103.0.5060.134\r\n npmPackages:\r\n vitepress: ^1.0.0-alpha.4 => 1.0.0-alpha.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] Follow our [Code of Conduct](https://vuejs.org/about/coc.html)\r\n- [X] Read the [docs](https://vitepress.vuejs.org).\r\n- [X] Check that there isn't already an issue that reports the same bug to avoid creating a duplicate.",[2965],{"name":2883,"color":2884},1068,"Documents named `arguments.md` cannot be built.","2023-01-21T14:27:03Z","https://github.com/vuejs/vitepress/issues/1068",0.7505139,["Reactive",2972],{},["Set"],["ShallowReactive",2975],{"$fTRc1wZytZ_XrK4EfJfei_Sz-An4H4Yy6syhVxH_PVJc":-1,"$fQi0yffUzYlDURz7OciBRdwwpaeZcFZpxgQ6OZyw_sfo":-1},"/vuejs/vitepress/4058"]