\r\n \u003Ctitle>\u003C/title>\r\n \u003Cstyle>\r\n /*申明字体*/\r\n @font-face {\r\n font-family: \"iconfont\";\r\n src: url(\"font/iconfont.eot\"); /* IE9*/\r\n src: url(\"font/iconfont.eot?#iefix\") format(\"embedded-opentype\"), /* IE6-IE8 */\r\n url(\"font/iconfont.woff\") format(\"woff\"),\r\n /* chrome、firefox */ url(\"font/iconfont.ttf\") format(\"truetype\"), /* chrome、firefox、opera、Safari, Android, iOS 4.2+*/\r\n url(\"font/iconfont.svg#iconfont\") format(\"svg\"); /* iOS 4.1- */\r\n }\r\n\r\n p {\r\n width: 200px;\r\n border: 1px solid #000;\r\n line-height: 60px;\r\n font-size: 30px;\r\n margin: 100px auto;\r\n text-align: center;\r\n position: relative;\r\n }\r\n\r\n .icon::before {\r\n content: \"\\e628\";\r\n font-family: iconfont;\r\n color: red;\r\n }\r\n\r\n span {\r\n position: relative;\r\n }\r\n \u003C/style>\r\n \u003C/head>\r\n \u003Cbody>\r\n \u003Cp class=\"icon\">扫码付款\u003C/p>\r\n \u003Cspan class=\"icon\">我是span\u003C/span>\r\n \u003Cdiv class=\"icon\">divvvvvvvvvvv\u003C/div>\r\n \u003C/body>\r\n\u003C/html>\r\n```\r\nIf this is a markdown verification error, can we make Vitepress more compatible with this type of error, or can we have a switch to enable this function\n\n### Reproduction\n\nnothing\n\n### Expected behavior\n\nsucceeful build\n\n### System Info\n\n```Text\nSystem:\r\n OS: Windows 10 10.0.19045\r\n CPU: (6) x64 Intel(R) Core(TM) i5-8400 CPU @ 2.80GHz\r\n Memory: 2.88 GB / 15.85 GB\r\n Binaries:\r\n Node: 18.20.3 - C:\\Program Files\\nodejs\\node.EXE \r\n Yarn: 1.22.22 - ~\\AppData\\Roaming\\npm\\yarn.CMD \r\n npm: 10.7.0 - C:\\Program Files\\nodejs\\npm.CMD \r\n pnpm: 8.15.7 - C:\\Program Files\\nodejs\\pnpm.CMD \r\n bun: 1.1.21 - ~\\.bun\\bin\\bun.EXE\r\n Browsers:\r\n Chrome: 128.0.6613.120\r\n Edge: Chromium (127.0.2651.74)\r\n Internet Explorer: 11.0.19041.4355\r\n npmPackages:\r\n vitepress: ^1.3.1 => 1.3.1\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.",[3053],{"name":3029,"color":3030},4188,"Element is missing end tag.","2024-09-16T04:43:59Z","https://github.com/vuejs/vitepress/issues/4188",0.73500806,{"description":3060,"labels":3061,"number":3063,"owner":3032,"repository":3033,"state":3034,"title":3064,"updated_at":3065,"url":3066,"score":3067},"### Describe the bug\n\nVS Code region names in Markdown file inclusion don't support special characters like dots (.) or hyphens (-), even though the documentation shows examples with hyphens. When attempting to include a region with these special characters, nothing is included in the output. Interestingly, if a region name doesn't exist at all, the entire file is included, but if the region exists and contains special characters, nothing is included.\n\n### Reproduction\n\n1. Create a markdown file with VS Code regions containing special characters in the region name:\n\n**Example with hyphens (`example-hyphen.md`):**\n```md\n\u003C!-- #region api-endpoints -->\n## GET /users\n\nFetches all users.\n\n## POST /users\n\nCreates a new user.\n\u003C!-- #endregion api-endpoints -->\n```\n\n**Example with dots (`example-dot.md`):**\n```md\n\u003C!-- #region auth.service -->\n## Login Method\n\nAuthenticates a user.\n\n## Logout Method\n\nEnds user session.\n\u003C!-- #endregion auth.service -->\n```\n\n2. Try to include these regions in another markdown file:\n\n```md\n# API Documentation\n\n\u003C!-- Trying to include region with hyphen -->\n\u003C!--@include: ./example-hyphen.md#api-endpoints-->\n\n\u003C!-- Trying to include region with dot -->\n\u003C!--@include: ./example-dot.md#auth.service-->\n```\n\n3. Build with VitePress - no content from the regions with special characters will be included\n\n### Expected behavior\n\nRegions with special characters like dots and hyphens should be properly included, as suggested by the documentation which shows examples with hyphens (e.g., `basic-usage`).\n\nFor the hyphen example, I expect:\n```md\n# API Documentation\n## GET /users\n\nFetches all users.\n\n## POST /users\n\nCreates a new user.\n```\n\nFor the dot example, I expect:\n```md\n# API Documentation\n## Login Method\n\nAuthenticates a user.\n\n## Logout Method\n\nEnds user session.\n```\n\nThe documentation itself uses `basic-usage` as an example region name with a hyphen, so this functionality should work.\n\n### System Info\n\n```Text\nSystem:\n OS: Windows 11 10.0.22631\n CPU: (16) x64 Intel(R) Core(TM) i7-6900K CPU @ 3.20GHz\n Memory: 17.34 GB / 31.90 GB\n Binaries:\n Node: 18.18.2 - C:\\Program Files\\nodejs\\node.EXE\n Yarn: 1.22.21 - ~\\AppData\\Roaming\\npm\\yarn.CMD\n npm: 9.8.1 - C:\\Program Files\\nodejs\\npm.CMD\n Browsers:\n Edge: Chromium (128.0.2739.79)\n Internet Explorer: 11.0.22621.3527\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.",[3062],{"name":3043,"color":3044},4624,"VS Code Region Names in Markdown File Inclusion Don't Support Special Characters","2025-03-17T22:20:08Z","https://github.com/vuejs/vitepress/issues/4624",0.73739314,{"description":3069,"labels":3070,"number":3072,"owner":3032,"repository":3033,"state":3034,"title":3073,"updated_at":3074,"url":3075,"score":3076},"### Describe the bug\n\nI noticed that certain Markdown extensions for code blocks do not work as expected in VitePress when using the **templ** language, while they work properly for other languages like **js**. Specifically:\n\n- **Not Working Properly**:\n - Focus in Code Blocks\n - Colored Diffs in Code Blocks\n - Errors and Warnings in Code Blocks\n- **Working as Expected**:\n - Line Highlighting in Code Blocks\n\nThanks\n\n\n\n### Reproduction\n\nhttps://stackblitz.com/edit/vite-4gtyqrtf?file=docs%2Findex.md\n\nVisit the demo page by clicking the _MD Extensions Issue with Templ_ button on the homepage.\n\n\n### Expected behavior\n\nAll supported Markdown extensions for code blocks should render correctly, regardless of the specified language, as long as the language is supported by shiki. Since `templ` is a supported language, these extensions should work as expected, similar to how Line Highlighting currently works.\n\n### System Info\n\n```Text\nSystem:\n OS: macOS 15.2\n CPU: (8) arm64 Apple M3\n Memory: 434.31 MB / 24.00 GB\n Shell: 5.9 - /bin/zsh\n Binaries:\n Node: 20.18.1 - ~/.nvm/versions/node/v20.18.1/bin/node\n npm: 10.8.2 - ~/.nvm/versions/node/v20.18.1/bin/npm\n pnpm: 9.15.4 - ~/Library/pnpm/pnpm\n Browsers:\n Chrome: 131.0.6778.267\n Safari: 18.2\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.",[3071],{"name":3029,"color":3030},4515,"Markdown Extensions for Code Blocks Not Working Properly with ‘templ’ Language","2025-02-01T04:42:48Z","https://github.com/vuejs/vitepress/issues/4515",0.73772895,{"description":3078,"labels":3079,"number":3081,"owner":3032,"repository":3033,"state":3034,"title":3082,"updated_at":3083,"url":3084,"score":3085},"### Describe the bug\n\n\r\nvitepress v1.0.0-rc.41\r\n--\r\n18:10:03.153 | \r\n18:10:03.204 | - building client + server bundles...\r\n18:10:04.206 | \r\n18:10:04.206 | The language 'git' is not loaded, falling back to 'txt' for syntax highlighting.\r\n18:10:04.207 | \r\n18:10:04.207 | The language 'git' is not loaded, falling back to 'txt' for syntax highlighting.\r\n18:10:20.793 | \r\n18:10:20.794 | \r\n18:10:20.794 | (!) Found dead link ./assets/Vue.js-devtools_v3.1.6.crx in file web/vue/vue-router/3-devTools.md\r\n18:10:20.794 | \r\n18:10:20.794 | If this is expected, you can disable this check via config. Refer: https://vitepress.dev/reference/site-config#ignoredeadlinks\r\n18:10:20.794 | \r\n18:10:20.795 | [vitepress] 1 dead link(s) found.\r\n18:10:20.795 | ✖ building client + server bundles...\r\n18:10:20.803 | build error:\r\n18:10:20.804 | Error: 1 dead link(s) found.\r\n\r\n\u003Cimg width=\"1341\" alt=\"image\" src=\"https://github.com/vuejs/vitepress/assets/56349292/19734b5b-3ede-426d-a62e-c06967ed9f03\">\r\n\n\n### Reproduction\n\nThere is no problem with packaging in the local environment\r\n\r\nProduction environment packaging prompt error\r\n\r\nnode - 20.10.0\r\nvitepress\": \"^1.0.0-rc.41\"\n\n### Expected behavior\n\nbuild success\n\n### System Info\n\n```Text\nSystem:\r\n OS: macOS 14.2\r\n CPU: (8) arm64 Apple M1\r\n Memory: 52.17 MB / 16.00 GB\r\n Shell: 5.9 - /bin/zsh\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.",[3080],{"name":3029,"color":3030},3541,"[vitepress] 1 dead link(s) found.","2024-02-17T00:04:16Z","https://github.com/vuejs/vitepress/issues/3541",0.73797745,{"description":3087,"labels":3088,"number":3089,"owner":3032,"repository":3033,"state":3034,"title":3090,"updated_at":3091,"url":3092,"score":3093},"### Describe the bug\n\nUsing script setup with `lang=\"ts\"` causes `[plugin:vite:vue] [@vue/compiler-sfc] \u003Cscript> and \u003Cscript setup> must have the same language type.` error. The error does not occur if `lang=\"ts\"` is removed.\r\n\r\nhttps://github.com/vuejs/vitepress/issues/575 is the same issue except a reproduction is included in this issue.\n\n### Reproduction\n\nMinimal reproduction available here: https://github.com/olivervorasai/vitepress-starter-ts-bug\r\n\r\n1. `npm install`\r\n2. `npm run docs:dev`\r\n\r\nThis reproduction was creating using the following documentation:\r\n- https://vitepress.vuejs.org/guide/getting-started.html#step-1-create-a-new-project\r\n- https://vitepress.vuejs.org/guide/using-vue.html#using-components\n\n### Expected behavior\n\nVitepress should render with or without `lang=\"ts\"`.\n\n### System Info\n\n```shell\nSystem:\r\n OS: Windows 10 10.0.19043\r\n CPU: (12) x64 Intel(R) Core(TM) i7-9750H CPU @ 2.60GHz\r\n Memory: 9.27 GB / 15.85 GB\r\n Binaries:\r\n Node: 16.13.1 - C:\\Program Files\\nodejs\\node.EXE\r\n npm: 8.3.1 - C:\\Program Files\\nodejs\\npm.CMD\r\n Browsers:\r\n Edge: Spartan (44.19041.1266.0), Chromium (101.0.1210.53)\r\n Internet Explorer: 11.0.19041.1566\r\n npmPackages:\r\n vitepress: ^1.0.0-alpha.1 => 1.0.0-alpha.1\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.",[],693,"Cannot use \u003Cscript setup lang=\"ts\"> in markdown file","2023-01-21T14:34:23Z","https://github.com/vuejs/vitepress/issues/693",0.74199045,{"description":3095,"labels":3096,"number":3098,"owner":3032,"repository":3033,"state":3034,"title":3099,"updated_at":3100,"url":3101,"score":3102},"\u003C!--\r\nNOTE:\r\nVitePress is still WIP, and it is not compatible with VuePress.\r\nPlease do not open issue about default theme missing features or something doesn't work like VuePress.\r\n-->\r\n\r\n**Describe the bug**\r\n`build`的时候报错,猜测可能是md文件名不支持中文\r\n\r\n\r\n**System Info**\r\n- vitepress version: v0.9.2\r\n- vite version: v1.0.0-rc.13\r\n- Node version: v12.4.0\r\n- OS version: Macos Big Sur 11.1\r\n",[3097],{"name":3043,"color":3044},186,"Does markdown file name not support Chinese?","2023-01-21T16:20:25Z","https://github.com/vuejs/vitepress/issues/186",0.74349123,{"description":3104,"labels":3105,"number":3112,"owner":3032,"repository":3033,"state":3034,"title":3113,"updated_at":3114,"url":3115,"score":3116},"### Is your feature request related to a problem? Please describe.\n\nI am frustrated and find it difficult in implement LaTeX onto the vitepress\n\n### Describe the solution you'd like\n\nThere are many packages on applying LaTeX to the website, e.g. Mathjax\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/coc)\n- [X] Read the [docs](https://vitepress.vuejs.org/).\n- [X] Read the [Contributing Guidelines](https://github.com/vuejs/vitepress/blob/master/.github/contributing.md).\n- [X] Check that there isn't already an issue that reports the same bug to avoid creating a duplicate.",[3106,3109],{"name":3107,"color":3108},"build","377ba8",{"name":3110,"color":3111},"has-workaround","1B4515",529,"KaTeX/MathJax implementation","2023-09-28T00:04:09Z","https://github.com/vuejs/vitepress/issues/529",0.74415463,{"description":3118,"labels":3119,"number":3121,"owner":3032,"repository":3033,"state":3034,"title":3122,"updated_at":3123,"url":3124,"score":3125},"### Describe the bug\r\n\r\nerror detail: https://github.com/scopor/wiki/actions/runs/3417036686/jobs/5687761775\r\n\r\nI miss the error in update a markdown file, file:https://raw.githubusercontent.com/scopor/wiki/main/docs/reading/css.md\r\n\r\nRun yarn docs:build\r\n yarn docs:build\r\n shell: /usr/bin/bash -e {0}\r\nyarn run v1.[2](https://github.com/scopor/wiki/actions/runs/3417036686/jobs/5687761775#step:6:2)2.19\r\n$ vitepress build docs\r\nvitepress v1.0.0-alpha.17\r\n- building client + server bundles...\r\n[vite:vue] Element is missing end tag.\r\nfile: /home/runner/work/wiki/wiki/docs/reading/css.md:208:110\r\n✖ building client + server bundles...\r\nbuild error:\r\n Error [SyntaxError]: Element is missing end tag.\r\n at createCompilerError (/home/runner/work/wiki/wiki/node_modules/@vue/compiler-core/dist/compiler-core.cjs.prod.js:18:19)\r\n at emitError (/home/runner/work/wiki/wiki/node_modules/@vue/compiler-core/dist/compiler-core.cjs.prod.js:157[3](https://github.com/scopor/wiki/actions/runs/3417036686/jobs/5687761775#step:6:3):29)\r\n at parseElement (/home/runner/work/wiki/wiki/node_modules/@vue/compiler-core/dist/compiler-core.cjs.prod.js:11[4](https://github.com/scopor/wiki/actions/runs/3417036686/jobs/5687761775#step:6:5)8:9)\r\n at parseChildren (/home/runner/work/wiki/wiki/node_modules/@vue/compiler-core/dist/compiler-core.cjs.prod.js:932:28)\r\n at parseElement (/home/runner/work/wiki/wiki/node_modules/@vue/compiler-core/dist/compiler-core.cjs.prod.js:112[7](https://github.com/scopor/wiki/actions/runs/3417036686/jobs/5687761775#step:6:8):22)\r\n at parseChildren (/home/runner/work/wiki/wiki/node_modules/@vue/compiler-core/dist/compiler-core.cjs.prod.js:932:2[8](https://github.com/scopor/wiki/actions/runs/3417036686/jobs/5687761775#step:6:9))\r\n at parseElement (/home/runner/work/wiki/wiki/node_modules/@vue/compiler-core/dist/compiler-core.cjs.prod.js:1127:22)\r\n at parseChildren (/home/runner/work/wiki/wiki/node_modules/@vue/compiler-core/dist/compiler-core.cjs.prod.js:[9](https://github.com/scopor/wiki/actions/runs/3417036686/jobs/5687761775#step:6:10)32:28)\r\n at parseElement (/home/runner/work/wiki/wiki/node_modules/@vue/compiler-core/dist/compiler-core.cjs.prod.js:1127:22)\r\n at parseChildren (/home/runner/work/wiki/wiki/node_modules/@vue/compiler-core/dist/compiler-core.cjs.prod.js:932:28) {\r\n id: '/home/runner/work/wiki/wiki/docs/reading/css.md',\r\n plugin: 'vite:vue',\r\n loc: {\r\n file: '/home/runner/work/wiki/wiki/docs/reading/css.md',\r\n line: 208,\r\n column: 1[10](https://github.com/scopor/wiki/actions/runs/3417036686/jobs/5687761775#step:6:11)\r\n },\r\n\r\n### Reproduction\r\n\r\n1、modify file\r\n2、trigger github actions: yarn docs:build\r\n\r\n### Expected behavior\r\n\r\nyarn docs:build\r\n\r\n### System Info\r\n\r\ngithub actions\r\n\r\n```shell\r\nvitepress v1.0.0-alpha.17\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.",[3120],{"name":3029,"color":3030},1590,"Element is missing end tag","2023-01-21T14:20:50Z","https://github.com/vuejs/vitepress/issues/1590",0.74635714,["Reactive",3127],{},["Set"],["ShallowReactive",3130],{"$fTRc1wZytZ_XrK4EfJfei_Sz-An4H4Yy6syhVxH_PVJc":-1,"$fzlUT6MxcLmN4IE6lPoEFGpJpJGC4308ZbAJfmXce75A":-1},"/vuejs/vitepress/3779"]