\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.7411979,{"description":2956,"labels":2957,"number":2961,"owner":2874,"repository":2875,"state":2926,"title":2962,"updated_at":2963,"url":2964,"score":2965},"### 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.",[2958],{"name":2959,"color":2960},"bug: pending triage","e99695",4267,"Cant import createContentLoader on build","2024-10-20T04:43:30Z","https://github.com/vuejs/vitepress/issues/4267",0.74603224,["Reactive",2967],{},["Set"],["ShallowReactive",2970],{"$fTRc1wZytZ_XrK4EfJfei_Sz-An4H4Yy6syhVxH_PVJc":-1,"$fsBJ8AiHN-5C_5xZPQQdhmGlrOpoxS31QTLvOoFa9BGg":-1},"/vuejs/vitepress/4198"]