\r\n \u003Cfigcaption align=\"center\">\r\n \u003Csmall style=\"opacity: 0.8\">${title}\u003C/small>\r\n \u003C/figcaption>\r\n \u003C/figure>`\r\n }\r\n return _super(tokens, idx, options, env, self)\r\n }\r\n }\r\n},\r\n..\r\n```\r\n\r\nThis is the **SERVER** rendered markup \r\n(or what I see when `CTRL+u`)\r\n\r\n```html\r\n\u003Cdiv>\r\n \u003Cp>z\u003C/p>\r\n \u003Cp>\u003Cimg src=\"/assets/vitepress-init.P2GuQSTo.jpg\" alt=\"\" />\u003C/p>\r\n \u003Cp>y\u003C/p>\r\n \u003Cp>\r\n \u003Cfigure>\r\n \u003Cimg src=\"/assets/colours.H7Z7cb1m.png\" alt=\"\" title=\"Test\" />\r\n \u003Cfigcaption align=\"center\">\u003Csmall style=\"opacity: 0.8;\">Test\u003C/small>\u003C/figcaption>\r\n \u003C/figure>\r\n \u003C/p>\r\n \u003Cp>x\u003C/p>\r\n\u003C/div>\r\n```\r\n\r\nThis is the **CLIENT** rendered markup\r\n(or what I see when I inspect in the browser `F12`)\r\n\r\n```html\r\n\u003Cdiv>\r\n \u003Cp>z\u003C/p>\r\n \u003Cp>\u003Cimg src=\"/assets/vitepress-init.P2GuQSTo.jpg\" alt=\"\" />\u003C/p>\r\n \u003Cp>y\u003C/p>\r\n \u003Cp>\u003C/p>\r\n \u003Cfigure>\r\n \u003Cimg src=\"/assets/colours.H7Z7cb1m.png\" alt=\"\" title=\"Test\" />\r\n \u003Cfigcaption align=\"center\">\u003Csmall style=\"opacity: 0.8;\">Test\u003C/small>\u003C/figcaption>\r\n \u003C/figure>\r\n\u003C/div>\r\n```\r\n\r\nSo looks like the client has problems rendering. The `\u003Cfigure>` should be inside the empty `\u003Cp>`, but it's not.\r\n\r\nI couldn't find in the core code where the server and client did the actual rendering, so I couldn't debug this further.\r\n\r\nAny help appreciated, thanks a lot\r\n\r\n\r\n\r\n\r\n\r\n### Expected behavior\r\n\r\nI would expect the server and client to render the same output\r\n\r\n### System Info\r\n\r\n```Text\r\nLinux\r\nVitePress v1.0.1\r\nNode 21.7.1\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.",[2920],{"name":2921,"color":2922},"bug: pending triage","e99695",3702,"closed","Hydration completed but contains mismatches","2024-05-01T04:42:08Z","https://github.com/vuejs/vitepress/issues/3702",0.7092033,{"description":2930,"labels":2931,"number":2933,"owner":2874,"repository":2875,"state":2924,"title":2934,"updated_at":2935,"url":2936,"score":2937},"### Describe the bug\n\n\u003Cimg width=\"638\" alt=\"image\" src=\"https://github.com/vuejs/vitepress/assets/111564053/b28f2112-61c4-46cd-b581-051e76589d3d\">\r\n\r\nAfter updating to the latest version of vitepress, I found that my custom font was overridden. I have specified the font as `LXGW WenKai`, but it is overridden by the higher-level selector `:root:lang(zh)`\n\n### Reproduction\n\n```css\r\n@import url(\"https://cdn.jsdelivr.net/gh/CMBill/lxgw-wenkai-web/style.css\");\r\n\r\n:root {\r\n --vp-font-family-base: \"LXGW WenKai\";\r\n --vp-font-family-mono: \"LXGW WenKai Mono\", monospace;\r\n}\r\n```\r\n\r\nThe above is the code of my `font.css`.\r\n\r\n```typescript\r\nimport DefaultTheme from \"vitepress/theme-without-fonts\";\r\nimport \"./fonts.css\";\r\nimport \"./custom.css\";\r\n\r\nexport default {\r\n extends: DefaultTheme,\r\n}\r\n```\r\n\r\nThis is how I use it\n\n### Expected behavior\n\nDisplay the correct font and modify the document to provide the latest practices.\n\n### System Info\n\n```Text\nSystem:\r\n OS: macOS 14.1\r\n CPU: (8) arm64 Apple M1\r\n Memory: 207.77 MB / 8.00 GB\r\n Shell: 5.9 - /bin/zsh\r\n Binaries:\r\n Node: 21.7.3 - /opt/homebrew/bin/node\r\n Yarn: 1.22.22 - /opt/homebrew/bin/yarn\r\n npm: 10.5.0 - /opt/homebrew/bin/npm\r\n pnpm: 9.0.6 - ~/Library/pnpm/pnpm\r\n bun: 1.0.18 - ~/.bun/bin/bun\r\n Watchman: 2024.04.15.00 - /opt/homebrew/bin/watchman\r\n Browsers:\r\n Safari: 17.1\r\n npmPackages:\r\n vitepress: latest => 1.1.4\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.",[2932],{"name":2921,"color":2922},3864,"Custom Chinese font is overridden","2024-05-12T04:42:50Z","https://github.com/vuejs/vitepress/issues/3864",0.71972966,{"description":2939,"labels":2940,"number":2944,"owner":2874,"repository":2875,"state":2924,"title":2945,"updated_at":2946,"url":2947,"score":2948},"### Describe the bug\n\nLine breaks in Markdown source are incorrectly rendered as actual line breaks when a Markdown source line begins with an inline Vue component. Consider this component:\n```md\n\u003C!-- TestComponent.vue -->\n\u003Ctemplate>\n \u003Cspan style=\"display: inline; background-color: red\">TestComponent\u003C/span>\n\u003C/template>\n```\n...as well as the following Markdown:\n```md\n\u003CTestComponent /> This text, despite having\nline breaks in it, should still be\nrendered on a single line.\n\nBut it doesn't.\n```\nThis unexpectedly renders as follows:\n```\nTestComponent This text, despite having\n\nline breaks in it, should still be rendered on a single line.\n\nBut it doesn't.\n```\nNote that this does not happen if the Markdown line starts with a bit of text instead of with the Vue component:\n```md\nFor some reason, \u003CTestComponent /> this example\nrenders fine.\n```\n```\nFor some reason, TestComponent this example renders fine.\n```\n\n### Reproduction\n\n- Create a component with inline display style\n- Start a new Markdown paragraph with that component and continue across multiple Markdown lines\n - **There must be no text before the component**\n- The first line break within the Markdown source for that paragraph will render as an actual line break\n\nA repro is available here: https://stackblitz.com/edit/vite-xxlcwfge?file=docs%2Findex.md\n\n### Expected behavior\n\nThe line break in the Markdown source should not render as an actual line break. The example from above should render as follows:\n```\nTestComponent This text, despite having line breaks in it, should still be rendered on a single line.\n\nBut it doesn't.\n``` \n\n### System Info\n\n```Text\nSystem:\n OS: Windows 10 10.0.19045\n CPU: (8) x64 Intel(R) Core(TM) i7-9700K CPU @ 3.60GHz\n Memory: 4.86 GB / 15.94 GB\n Binaries:\n Node: 22.14.0 - C:\\Program Files\\nodejs\\node.EXE \n npm: 10.9.2 - C:\\Program Files\\nodejs\\npm.CMD \n Browsers:\n Edge: Spartan (44.19041.3636.0), Chromium (127.0.2651.74)\n Internet Explorer: 11.0.19041.3636\n npmPackages:\n vitepress: ^1.6.3 => 1.6.3\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.",[2941],{"name":2942,"color":2943},"upstream","BF29ED",4626,"Markdown lines starting with an inline Vue component are incorrectly considered to be a whole paragraph","2025-04-10T13:10:53Z","https://github.com/vuejs/vitepress/issues/4626",0.73602694,{"description":2950,"labels":2951,"number":2953,"owner":2874,"repository":2875,"state":2924,"title":2954,"updated_at":2955,"url":2956,"score":2957},"### Describe the bug\n\n使用官方文档中的工作流部署 GitHub Pages,Actions 在执行 `npm run docs:build` 时报错,内容如下:\r\n\r\n```text\r\nRun npm run docs:build\r\n> docs:build\r\n> vitepress build\r\n vitepress v1.1.4\r\n- building client + server bundles...\r\nx Build failed in 4.75s\r\n✖ building client + server bundles...\r\nbuild error:\r\nRollupError: Could not resolve \"./doc/images/1_create_empty_project.png\" from \"en/advanced-topics/native-plugins/tutorial.md\"\r\nfile: /home/runner/work/cocos-docs-vitepress/cocos-docs-vitepress/en/advanced-topics/native-plugins/tutorial.md\r\n at getRollupError (file:///home/runner/work/cocos-docs-vitepress/cocos-docs-vitepress/node_modules/rollup/dist/es/shared/parseAst.js:394:41)\r\n at error (file:///home/runner/work/cocos-docs-vitepress/cocos-docs-vitepress/node_modules/rollup/dist/es/shared/parseAst.js:390:42)\r\n at ModuleLoader.handleInvalidResolvedId (file:///home/runner/work/cocos-docs-vitepress/cocos-docs-vitepress/node_modules/rollup/dist/es/shared/node-entry.js:1910[6](https://github.com/CosmoLau/cocos-docs-vitepress/actions/runs/9138290074/job/25129401928#step:6:7):24)\r\n at file:///home/runner/work/cocos-docs-vitepress/cocos-docs-vitepress/node_modules/rollup/dist/es/shared/node-entry.js:19066:26\r\nError: Process completed with exit code 1.\r\n```\r\n\r\n在本地开发时不会遇到这个报错,能成功通过 `npm run docs:build` 进行构建。\n\n### Reproduction\n\n复现仓库:https://github.com/CosmoLau/cocos-docs-vitepress\r\nActions:https://github.com/CosmoLau/cocos-docs-vitepress/blob/master/.github/workflows/deploy.yml\n\n### Expected behavior\n\nActions 能成功运行\n\n### System Info\n\n```Text\nSystem:\r\n OS: Windows 11 10.0.26120\r\n CPU: (12) x64 AMD Ryzen 5 3600X 6-Core Processor\r\n Memory: 18.76 GB / 31.95 GB\r\n Binaries:\r\n Node: 18.16.0 - C:\\Program Files\\nodejs\\node.EXE\r\n Yarn: 1.22.19 - ~\\AppData\\Roaming\\npm\\yarn.CMD\r\n npm: 9.5.1 - C:\\Program Files\\nodejs\\npm.CMD\r\n bun: 1.1.8 - ~\\.bun\\bin\\bun.EXE\r\n Browsers:\r\n Edge: Chromium (124.0.2478.19)\r\n Internet Explorer: 11.0.26100.1\r\n npmPackages:\r\n vitepress: ^1.1.4 => 1.1.4\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.",[2952],{"name":2921,"color":2922},3899,"GitHub Pages 部署失败","2024-05-26T04:41:51Z","https://github.com/vuejs/vitepress/issues/3899",0.73879194,{"description":2959,"labels":2960,"number":2962,"owner":2874,"repository":2875,"state":2924,"title":2963,"updated_at":2964,"url":2965,"score":2966},"### Describe the bug\n\ngithub授权登陆失败,浏览器控制台报错如标题,希望放开github的授权登陆\n\n\n\n### Reproduction\n\n点击github授权登陆\n\n### Expected behavior\n\ngithub授权登陆正常\n\n### System Info\n\n```Text\nedge浏览器\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.",[2961],{"name":2921,"color":2922},4682,"已暂停使用GitHub登录,如果您是新用户请使用新的登录方式,如果您是github登录的老用户请换个时间段登录","2025-04-07T10:26:01Z","https://github.com/vuejs/vitepress/issues/4682",0.7511484,["Reactive",2968],{},["Set"],["ShallowReactive",2971],{"$fTRc1wZytZ_XrK4EfJfei_Sz-An4H4Yy6syhVxH_PVJc":-1,"$fECdMT96BcT1Qjr5b-yd1W81Iwq6ah6zzfjjRJBP5fro":-1},"/vuejs/vitepress/4209"]