\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.74119794,{"description":3225,"labels":3226,"number":3230,"owner":3152,"repository":3153,"state":3195,"title":3231,"updated_at":3232,"url":3233,"score":3234},"### Describe the bug\n\nHi, I'm trying to use the `createContentLoader` function but I always get the same traceback:\r\n\r\n```\r\nPS G:\\THR\\The-Hacker-Recipes> npm run docs:build\r\n\r\n> docs:build\r\n> vitepress build docs\r\n\r\n\r\n vitepress v1.4.0\r\n\r\nx Build failed in 13.54s\r\n✖ building client + server bundles...\r\nbuild error:\r\ndocs/.vitepress/theme/composables/authorsLoader.ts (2:9): \"createContentLoader\" is not exported by \"node_modules/vitepress/dist/client/index.js\", imported by \"docs/.vitepress/theme/composables/authorsLoader.ts\". \r\nfile: G:/THR/The-Hacker-Recipes/docs/.vitepress/theme/composables/authorsLoader.ts:2:9\r\n\r\n1: // authorsLoader.ts\r\n2: import { createContentLoader } from 'vitepress'\r\n ^\r\n3: \r\n4: export default createContentLoader({\r\n\r\ndocs/.vitepress/theme/composables/authorsLoader.ts (2:9): \"createContentLoader\" is not exported by \"node_modules/vitepress/dist/client/index.js\", imported by \"docs/.vitepress/theme/composables/authorsLoader.ts\". \r\nfile: G:/THR/The-Hacker-Recipes/docs/.vitepress/theme/composables/authorsLoader.ts:2:9\r\n\r\n1: // authorsLoader.ts\r\n2: import { createContentLoader } from 'vitepress'\r\n ^\r\n3:\r\n4: export default createContentLoader({\r\n\r\n at getRollupError (file:///G:/THR/The-Hacker-Recipes/node_modules/rollup/dist/es/shared/parseAst.js:395:41)\r\n at error (file:///G:/THR/The-Hacker-Recipes/node_modules/rollup/dist/es/shared/parseAst.js:391:42)\r\n at Module.error (file:///G:/THR/The-Hacker-Recipes/node_modules/rollup/dist/es/shared/node-entry.js:15535:16)\r\n at Module.traceVariable (file:///G:/THR/The-Hacker-Recipes/node_modules/rollup/dist/es/shared/node-entry.js:15984:29)\r\n at ModuleScope.findVariable (file:///G:/THR/The-Hacker-Recipes/node_modules/rollup/dist/es/shared/node-entry.js:13770:39)\r\n at Identifier.bind (file:///G:/THR/The-Hacker-Recipes/node_modules/rollup/dist/es/shared/node-entry.js:5035:40)\r\n at CallExpression.bind (file:///G:/THR/The-Hacker-Recipes/node_modules/rollup/dist/es/shared/node-entry.js:2855:23)\r\n at CallExpression.bind (file:///G:/THR/The-Hacker-Recipes/node_modules/rollup/dist/es/shared/node-entry.js:11235:15)\r\n at ExportDefaultDeclaration.bind (file:///G:/THR/The-Hacker-Recipes/node_modules/rollup/dist/es/shared/node-entry.js:2855:23)\r\n at Program.bind (file:///G:/THR/The-Hacker-Recipes/node_modules/rollup/dist/es/shared/node-entry.js:2851:28)\r\n```\r\n\r\nHere is my file which uses the module, `authorsLoader.ts` : \r\n\r\n```typescript\r\n// authorsLoader.ts\r\nimport { createContentLoader } from 'vitepress'\r\n\r\nexport default createContentLoader({\r\n pattern: '**/*.md',\r\n extract({ frontmatter }) {\r\n if (frontmatter.authors) {\r\n return {\r\n authors: frontmatter.authors.split(',').map((author: string) => author.trim()),\r\n }\r\n }\r\n return null\r\n }\r\n})\r\n```\r\n\r\nAnd here is my `index.js` from which the modules I can import are taken: \r\n\r\n```javascript\r\n// exports in this file are exposed to themes and md files via 'vitepress'\r\n// so the user can do `import { useRoute, useData } from 'vitepress'`\r\n// composables\r\nexport { useData, dataSymbol } from './app/data';\r\nexport { useRoute, useRouter } from './app/router';\r\n// utilities\r\nexport { inBrowser, onContentUpdated, defineClientComponent, withBase, getScrollOffset, _escapeHtml } from './app/utils';\r\n// components\r\nexport { Content } from './app/components/Content';\r\n```\r\n\n\n### Reproduction\n\nHere you can see the github action build failing : \r\n\r\nhttps://github.com/The-Hacker-Recipes/The-Hacker-Recipes/actions/runs/11284736710/job/31386402614\r\n\n\n### Expected behavior\n\nI expect my version of vitepress being able to use all the framework modules.\n\n### System Info\n\n```Text\nSystem:\r\n OS: Windows 10 10.0.19045\r\n CPU: (16) x64 AMD Ryzen 7 3800X 8-Core Processor\r\n Memory: 10.25 GB / 31.95 GB\r\n Binaries:\r\n Node: 20.11.1 - C:\\Program Files\\nodejs\\node.EXE\r\n Yarn: 1.22.19 - ~\\AppData\\Roaming\\npm\\yarn.CMD\r\n npm: 10.2.4 - C:\\Program Files\\nodejs\\npm.CMD\r\n pnpm: 9.5.0 - ~\\AppData\\Local\\pnpm\\pnpm.EXE\r\n bun: 1.1.20 - ~\\AppData\\Roaming\\npm\\bun.CMD\r\n Browsers:\r\n Edge: Chromium (128.0.2739.54)\r\n Internet Explorer: 11.0.19041.4355\r\n npmPackages:\r\n vitepress: ^1.4.0 => 1.4.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.",[3227],{"name":3228,"color":3229},"bug: pending triage","e99695",4267,"Cant import createContentLoader on build","2024-10-20T04:43:30Z","https://github.com/vuejs/vitepress/issues/4267",0.74603224,{"description":3236,"labels":3237,"number":3238,"owner":3152,"repository":3153,"state":3195,"title":3239,"updated_at":3240,"url":3241,"score":3242},"### Describe the bug\n\nWhen navigating to a VitePress site from any other domain (e.g. this link: [https://vitepress.vuejs.org/](https://vitepress.vuejs.org/)), the VitePress router adds a duplicate entry to the browser session's history stack. This occurs because [`history.pushState()` is called via `router.go()` ](https://github.com/vuejs/vitepress/blob/3b890e81774740bb92baf9ac305c1f9fb11d3d2f/src/client/app/index.ts#L132) on the initial page load.\r\n\r\nThe effect of this depends on the browser.\r\n\r\n- In Chromium-based browsers, due to implementing [History Manipulation Intervention](https://groups.google.com/a/chromium.org/g/blink-dev/c/T8d4_BRb2xQ/m/WSdOiOFcBAAJ), the back button works as expected and the user returns to the previous page (e.g. this page).\r\n \r\n- Safari implements something similar and the back button also works as expected.\r\n \r\n- In Firefox, the user has to click the back button twice to return.\r\n \r\nIn all cases, the duplicate entry is still visible in the history stack.\n\n### Reproduction\n\n1. Visit [https://vitepress.vuejs.org/](https://vitepress.vuejs.org/) by left clicking the link.\r\n2. Right click (if Safari, long press) on the browser's back button and notice there is an extra entry.\n\n### Expected behavior\n\nThe extra entry is not added, like when visiting [https://developer.mozilla.org/en-US/](https://developer.mozilla.org/en-US/).\n\n### System Info\n\n```shell\nSystem:\r\n OS: Linux 6.1 Arch Linux\r\n CPU: (16) x64 AMD Ryzen 7 5700G with Radeon Graphics\r\n Memory: 23.05 GB / 30.74 GB\r\n Container: Yes\r\n Shell: 5.9 - /bin/zsh\r\n Binaries:\r\n Node: 16.19.0 - /usr/bin/node\r\n npm: 8.19.2 - /usr/bin/npm\r\n Browsers:\r\n Chromium: 109.0.5414.74\r\n Firefox: 108.0.2\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.",[],1792,"Router adds duplicate entry to session history stack","2023-01-29T00:04:24Z","https://github.com/vuejs/vitepress/issues/1792",0.7460342,["Reactive",3244],{},["Set"],["ShallowReactive",3247],{"$fTRc1wZytZ_XrK4EfJfei_Sz-An4H4Yy6syhVxH_PVJc":-1,"$fsBJ8AiHN-5C_5xZPQQdhmGlrOpoxS31QTLvOoFa9BGg":-1},"/vuejs/vitepress/4198"]