\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.76850855,{"description":3103,"labels":3104,"number":3108,"owner":3046,"repository":3047,"state":3060,"title":3109,"updated_at":3110,"url":3111,"score":3112},"### Describe the bug\n\nWhen i bump to `1.0.0-alpha.74` and configure the `search` field,start a server will get a error.\r\nThe reason is that my markdown plugin which depends on `env` parameters that contains `path` info in `markdownToVue.ts`\r\n\u003Cimg width=\"422\" alt=\"image\" src=\"https://user-images.githubusercontent.com/25956811/235289997-3cec0b29-928e-48b5-9fd6-f08ccf9843a9.png\">\r\n\r\nBut when I configure the `search` field in `config.ts`, in `localSearchPlugin.ts` which use `md.render(await fs.readFile(file, 'utf-8'))`, It lacks `path` info in `env` object as belows:\r\n\u003Cimg width=\"613\" alt=\"image\" src=\"https://user-images.githubusercontent.com/25956811/235290138-db1936d5-3b2d-420d-b983-bbd8db406d62.png\">\r\n\u003Cimg width=\"588\" alt=\"image\" src=\"https://user-images.githubusercontent.com/25956811/235290161-34ab41ce-896d-4fc0-9686-0623a42067b3.png\">\r\n\r\n\r\nMy plugin is a normal markdown plugin which relies `env.path`.\r\n```typescript\r\nexport const loadContainerPlugin = (md: MarkdownIt) => {\r\n md.use(markdownItContainer, 'demo', {\r\n validate(params) {\r\n return !!params.trim().match(/^demo/)\r\n },\r\n\r\n render(tokens: Token[], idx, _, env) {\r\n // It will breaks when working with localSearchPlugin.ts\r\n console.log(env.path)\r\n }\r\n })\r\n}\r\n```\n\n### Reproduction\n\nnone\n\n### Expected behavior\n\n`localSearchPlugin` should keep the same logic as `markdownToVue` when use `md.render()`\n\n### System Info\n\n```sh\nnone\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.",[3105],{"name":3106,"color":3107},"build","377ba8",2313,"【Bug】localSearchPlugin breaks up other markdown plugin","2023-06-18T00:04:57Z","https://github.com/vuejs/vitepress/issues/2313",0.77332115,{"description":3114,"labels":3115,"number":3117,"owner":3046,"repository":3047,"state":3060,"title":3118,"updated_at":3119,"url":3120,"score":3121},"### Describe the bug\r\n\r\nSuch code:\r\n\r\n````md\r\n```vue twoslash :line-numbers\r\n\u003Cscript setup lang=\"ts\">\r\nimport {ref} from 'vue';\r\n\r\nconst message = ref('Hello world!');\r\n\u003C/script>\r\n```\r\n````\r\n\r\ncode block line numbers would be from 1 to 2, rather than from 1 to 5, [see here](http://localhost:5173/knowledge-base/TODO#bug)\r\n\r\n### Reproduction\r\n\r\nusing such code in `vitepress`:\r\n\r\n````md\r\n```vue twoslash :line-numbers\r\n\u003Cscript setup lang=\"ts\">\r\nimport {ref} from 'vue';\r\n\r\nconst message = ref('Hello world!');\r\n\u003C/script>\r\n```\r\n````\r\n\r\n### Expected behavior\r\n\r\nline number works correctly\r\n\r\n### System Info\r\n\r\n```Text\r\nnone\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.",[3116],{"name":3057,"color":3058},3972,"[BUG]","2024-06-28T04:43:03Z","https://github.com/vuejs/vitepress/issues/3972",0.77505845,{"description":3123,"labels":3124,"number":3125,"owner":3046,"repository":3047,"state":3060,"title":3126,"updated_at":3127,"url":3128,"score":3129},"### Is your feature request related to a problem? Please describe.\n\n需要自定义AI搜索引擎比如https://metaso.cn/?q=%s \n但目前不能重命名 而且只能一个,不方便切换\n\n### Describe the solution you'd like\n\n自定义内可以编辑名称,且有个+号能新增一个\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.",[],4550,"搜索引擎自定义只能一个,且无法命名","2025-02-16T04:42:55Z","https://github.com/vuejs/vitepress/issues/4550",0.7791746,{"description":3131,"labels":3132,"number":3134,"owner":3046,"repository":3047,"state":3060,"title":3135,"updated_at":3136,"url":3137,"score":3138},"### Describe the bug\r\n\r\nhttps://github.com/vuejs/vitepress/blob/75ca9e4302c65e3bcc9518f7df928318380f6cf6/src/node/markdown/plugins/highlightLines.ts#L30\r\n\r\n`highlightLinePlugin` is used before `attrs`, and `token.info` is rewritten.\r\n\r\nvia https://github.com/vuejs/vitepress/pull/664#discussion_r902203459\r\n\r\n### Reproduction\r\n\r\n\u003Cimg width=\"177\" alt=\"image\" src=\"https://user-images.githubusercontent.com/8336744/174726207-1c068f94-f597-4d5e-9101-4709a08a60c3.png\">\r\n\r\n\u003Cimg width=\"299\" alt=\"image\" src=\"https://user-images.githubusercontent.com/8336744/174726233-83967c42-db47-4c12-8dbd-0c83a817c448.png\">\r\n\r\n\r\n### Expected behavior\r\n\r\nRender `data=\"asdf\"`\r\n\r\n### System Info\r\n\r\n```shell\r\nSystem:\r\n OS: macOS 13.0\r\n CPU: (10) arm64 Apple M1 Max\r\n Memory: 13.84 GB / 64.00 GB\r\n Shell: 5.8.1 - /bin/zsh\r\n Binaries:\r\n Node: 16.15.1 - ~/Library/Caches/fnm_multishells/95455_1655742557079/bin/node\r\n Yarn: 1.22.19 - ~/Library/Caches/fnm_multishells/95455_1655742557079/bin/yarn\r\n npm: 8.12.1 - ~/Library/Caches/fnm_multishells/95455_1655742557079/bin/npm\r\n Browsers:\r\n Chrome: 102.0.5005.115\r\n Firefox: 101.0.1\r\n Safari: 16.0\r\n npmPackages:\r\n vitepress: ^1.0.0-alpha.2 => 1.0.0-alpha.2\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.",[3133],{"name":3043,"color":3044},826,"support adding attributes to code blocks","2023-08-11T00:04:28Z","https://github.com/vuejs/vitepress/issues/826",0.7806396,["Reactive",3140],{},["Set"],["ShallowReactive",3143],{"$fTRc1wZytZ_XrK4EfJfei_Sz-An4H4Yy6syhVxH_PVJc":-1,"$fsGg7Dgs-y3P3LV5CM9VaFi9LrzWphojxhfuNgFeTF34":-1},"/vuejs/vitepress/2394"]