\r\n```\r\n\r\nMyComponent.vue:\r\n\r\n```html\r\n\u003Ctemplate>\r\n \u003Cdiv style=\"width: 10rem; height: 10rem; background: red\" />\r\n\u003C/template>\r\n```\r\n\r\nOn dev it renders as one red box, with SSR it renders as two. The SSR HTML is strange:\r\n\r\n```html\r\n\u003Cp>\u003Cimg src=\"...\" alt=\"\">\u003C/p>\r\n\u003Cdiv style=\"width: 10rem; height: 10rem; background: red;\">\u003C/div>\r\n\u003Cp>\u003C/p>\r\n\u003Cdiv style=\"width:10rem;height:10rem;background:red;\">\u003C/div>\r\n```\r\n\r\n\r\n\r\n\n\n### Expected behavior\n\nComponent would render properly, or at least identically, in both dev and SSR.\n\n### System Info\n\n```shell\nSystem:\r\n OS: macOS 12.4\r\n CPU: (8) arm64 Apple M1\r\n Memory: 135.58 MB / 16.00 GB\r\n Shell: 5.8.1 - /bin/zsh\r\n Binaries:\r\n Node: 16.13.2 - ~/.asdf/installs/nodejs/16.13.2/bin/node\r\n Yarn: 1.22.18 - ~/.asdf/installs/nodejs/16.13.2/.npm/bin/yarn\r\n npm: 8.1.2 - ~/.asdf/plugins/nodejs/shims/npm\r\n Browsers:\r\n Chrome: 102.0.5005.115\r\n Firefox: 97.0.1\r\n Safari: 15.5\r\n npmPackages:\r\n vitepress: ^1.0.0-alpha.1 => 1.0.0-alpha.1\n```\n\n\n### Additional context\n\nTo workaround the issue, place a newline between the image and the `\u003Cp>` tag, like so:\r\n\r\n```md\r\n\r\n\r\n\u003Cp>sometext\u003C/p>\r\n\r\n\u003CMyComponent/>\r\n```\r\n\r\nThen everything renders properly.\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.",[],770,"dup component with \u003Cimg>+\u003Cp> in markdown (SSR)","2023-03-21T00:04:07Z","https://github.com/vuejs/vitepress/issues/770",0.81031,{"description":2942,"labels":2943,"number":2944,"owner":2872,"repository":2873,"state":2883,"title":2945,"updated_at":2946,"url":2947,"score":2948},"### Is your feature request related to a problem? Please describe.\n\nI've been writing a small website on the side, and am looking to add custom languages (e.g. LC-3) to shiki for the articles.\r\nI've noticed there's no way to configure this within `.vitepress/config.ts`, and I do not want to resort to modifying the `shiki` package to do this.\n\n### Describe the solution you'd like\n\nAs described on https://shiki.matsu.io/, custom languages can be loaded during the `getHighlighter` call:\r\n```js\r\ngetHighlighter({\r\n theme: 'nord',\r\n langs: [\r\n {\r\n id: 'rockstar',\r\n scopeName: 'source.rockstar',\r\n path: './rockstar.tmLanguage.json' // this can also be a JSON object describing the grammar, doesn't need to load from a file.\r\n }\r\n ]\r\n})\r\n```\r\n\r\nAnother method is to use `highlighter.loadLanguage(lang)` afterwards.\r\n\r\nIt would be great if we could specify arguments to `shiki.getHighlighter` in `.vitepress/config.{js,ts}` as we can with `markdown-it`, `vue`, etc.\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.vuejs.org).\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.",[],1067,"Allow endusers to modify the shiki configuration","2023-01-21T14:30:07Z","https://github.com/vuejs/vitepress/issues/1067",0.8173971,{"description":2950,"labels":2951,"number":2955,"owner":2872,"repository":2873,"state":2883,"title":2956,"updated_at":2957,"url":2958,"score":2959},"### Describe the bug\r\n\r\nYou can check Reproduction Url test.\r\n\r\nEverything works fine when I start the vite project(`apps/playground`) using `pnpm dev:playground`. It crashed when I started vitepress project(`apps/document`) using `pnpm dev:document`.\r\n\r\nMy monorepo project uses `node condition` to link the source code. You can check the `dev` field in `package.json` or `condition: [\"dev\"]` in `vite.config.ts` or `condition: [\"dev\"]` in `config.ts`.\r\n\r\n### Reproduction\r\n\r\nhttps://github.com/i7eo/monorepo-vitepress-bug-report\r\n\r\n### Expected behavior\r\n\r\nStart normally like a vite project(`apps/playground`)\r\n\r\n### System Info\r\n\r\n```Text\r\nSystem:\r\n OS: macOS 14.4.1\r\n CPU: (10) arm64 Apple M1 Max\r\n Memory: 3.61 GB / 64.00 GB\r\n Shell: 5.9 - /bin/zsh\r\n Binaries:\r\n Node: 20.12.2 - ~/.nvm/versions/node/v20.12.2/bin/node\r\n npm: 10.5.0 - ~/.nvm/versions/node/v20.12.2/bin/npm\r\n pnpm: 9.1.0 - ~/.nvm/versions/node/v20.12.2/bin/pnpm\r\n Watchman: 2024.04.08.00 - /opt/homebrew/bin/watchman\r\n Browsers:\r\n Chrome: 124.0.6367.201\r\n Safari: 17.4.1\r\n Safari Technology Preview: 17.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.",[2952],{"name":2953,"color":2954},"bug: pending triage","e99695",3888,"Vitepress project in monorepo reports `Failed to resolve import \"xxx\"`","2024-05-22T04:41:52Z","https://github.com/vuejs/vitepress/issues/3888",0.8190988,["Reactive",2961],{},["Set"],["ShallowReactive",2964],{"$fTRc1wZytZ_XrK4EfJfei_Sz-An4H4Yy6syhVxH_PVJc":-1,"$fs7e1ZHh0mm8jeB9gsqRl9FydRRTJyiXdo4hCUtjV8U8":-1},"/vuejs/vitepress/472"]