\n\nThe issue can also be seen in VS Code, where the closing element will lose its syntax coloring:\n\n\u003Cimg width=\"415\" height=\"258\" alt=\"Image\" src=\"https://github.com/user-attachments/assets/00d3e974-6626-4a47-9a29-0d42069b3435\" />\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.",[3064],{"name":3019,"color":3020},4836,"Mixing markdown inside markup breaks parsing if closing element is indented by 4 spaces or 1 tab (or more)","2025-07-13T09:28:05Z","https://github.com/vuejs/vitepress/issues/4836",0.7046267,{"description":3071,"labels":3072,"number":3074,"owner":3022,"repository":3023,"state":3048,"title":3075,"updated_at":3076,"url":3077,"score":3078},"### Describe the bug\n\nHTML table (`td`) with extra newline throws `Error is missing end tag`. Row is transpiled to:\r\n\r\n```html\r\n\u003Ctr>\r\n \u003Ctd>Foo\u003C/td>\r\n \u003Ctd>Multi\r\n\u003Cp>Line\u003C/td>\u003C/p>\r\n \u003C/tr>\r\n```\r\n\r\n`\u003C/td>` and `\u003C/p>` should be reversed.\n\n### Reproduction\n\nSee example on [StackBlitz](https://stackblitz.com/edit/vite-js5myp?file=docs/broken.md).\n\n### Expected behavior\n\nIt should work as shown on the `Works` example, with single new line.\r\n\r\nBroken example:\r\n```html\r\n\u003Ctable>\r\n \u003Ctr>\r\n \u003Cth>Foo\u003C/th>\r\n \u003Cth>Bar\u003C/th>\r\n \u003C/tr>\r\n \u003Ctr>\r\n \u003Ctd>Single-line\u003C/td>\r\n \u003Ctd>Multi\r\n\r\nLine\u003C/td>\r\n\r\n \u003C/tr>\r\n \u003C/table>\r\n```\r\n\r\nWorking example:\r\n```html\r\n\u003Ctable>\r\n \u003Ctr>\r\n \u003Cth>Foo\u003C/th>\r\n \u003Cth>Bar\u003C/th>\r\n \u003C/tr>\r\n \u003Ctr>\r\n \u003Ctd>Single-line\u003C/td>\r\n \u003Ctd>Multi\r\nLine\u003C/td>\r\n\r\n \u003C/tr>\r\n \u003C/table>\r\n```\r\n\r\nMarkdown rendering:\r\n\u003Ctable>\r\n \u003Ctr>\r\n \u003Cth>Foo\u003C/th>\r\n \u003Cth>Bar\u003C/th>\r\n \u003C/tr>\r\n \u003Ctr>\r\n \u003Ctd>Single-line\u003C/td>\r\n \u003Ctd>Multi\r\n\r\nLine\u003C/td>\r\n\r\n \u003C/tr>\r\n \u003C/table>\n\n### System Info\n\n```shell\nSystem:\r\n OS: Linux 5.0 undefined\r\n CPU: (8) x64 Intel(R) Core(TM) i9-9880H CPU @ 2.30GHz\r\n Memory: 0 Bytes / 0 Bytes\r\n Shell: 1.0 - /bin/jsh\r\n Binaries:\r\n Node: 16.14.2 - /usr/local/bin/node\r\n Yarn: 1.22.19 - /usr/local/bin/yarn\r\n npm: 7.17.0 - /usr/local/bin/npm\r\n npmPackages:\r\n vitepress: latest => 1.0.0-alpha.46\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.",[3073],{"name":3019,"color":3020},1940,"Multi-line HTML table throws `Element is missing end tag`","2023-02-22T00:04:45Z","https://github.com/vuejs/vitepress/issues/1940",0.7053335,{"description":3080,"labels":3081,"number":3083,"owner":3022,"repository":3023,"state":3048,"title":3084,"updated_at":3085,"url":3086,"score":3087},"### Describe the bug\n\nWhen parsing Chinese Markdown content, VitePress generates an error message. I'm unable to determine the cause of this issue.\n\n### Reproduction\n\nhttps://stackblitz.com/edit/vite-vgqwpapn?file=docs%2Fexample.md,docs%2Fzh-example.md\n\n### Expected behavior\n\nwork to parse chinese\n\n### System Info\n\n```Text\nmacos 15.3.1\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.",[3082],{"name":3019,"color":3020},4767,"Render content or parse content fail","2025-06-01T12:58:09Z","https://github.com/vuejs/vitepress/issues/4767",0.7072602,{"description":3089,"labels":3090,"number":3091,"owner":3022,"repository":3023,"state":3048,"title":3092,"updated_at":3093,"url":3094,"score":3095},"### Describe the bug\n\nRendered error with toc in headline.\r\n\r\nindex.md\r\n```\r\n[[toc]]\r\n\r\n### `\u003Cpath>`\r\n```\n\n### Reproduction\n\nhttps://stackblitz.com/edit/github-zbjrsg-7dahpw?file=index.md\r\n\r\n\n\n### Expected behavior\n\n```\r\n at createCompilerError (D:\\wgf\\My Documents\\GitHub\\vueprojects\\vitepress_demo\\node_modules\\.pnpm\\@vue+compiler-core@3.2.31\\node_modules\\@vue\\compiler-core\\dist\\compiler-core.cjs.js:19:19)\r\n at emitError (D:\\wgf\\My Documents\\GitHub\\vueprojects\\vitepress_demo\\node_modules\\.pnpm\\@vue+compiler-core@3.2.31\\node_modules\\@vue\\compiler-core\\dist\\compiler-core.cjs.js:1594:29)\r\n at parseElement (D:\\wgf\\My Documents\\GitHub\\vueprojects\\vitepress_demo\\node_modules\\.pnpm\\@vue+compiler-core@3.2.31\\node_modules\\@vue\\compiler-core\\dist\\compiler-core.cjs.js:1146:9)\r\n at parseChildren (D:\\wgf\\My Documents\\GitHub\\vueprojects\\vitepress_demo\\node_modules\\.pnpm\\@vue+compiler-core@3.2.31\\node_modules\\@vue\\compiler-core\\dist\\compiler-core.cjs.js:937:28)\r\n at parseElement (D:\\wgf\\My Documents\\GitHub\\vueprojects\\vitepress_demo\\node_modules\\.pnpm\\@vue+compiler-core@3.2.31\\node_modules\\@vue\\compiler-core\\dist\\compiler-core.cjs.js:1125:22)\r\n at parseChildren (D:\\wgf\\My Documents\\GitHub\\vueprojects\\vitepress_demo\\node_modules\\.pnpm\\@vue+compiler-core@3.2.31\\node_modules\\@vue\\compiler-core\\dist\\compiler-core.cjs.js:937:28)\r\n at parseElement (D:\\wgf\\My Documents\\GitHub\\vueprojects\\vitepress_demo\\node_modules\\.pnpm\\@vue+compiler-core@3.2.31\\node_modules\\@vue\\compiler-core\\dist\\compiler-core.cjs.js:1125:22)\r\n at parseChildren (D:\\wgf\\My Documents\\GitHub\\vueprojects\\vitepress_demo\\node_modules\\.pnpm\\@vue+compiler-core@3.2.31\\node_modules\\@vue\\compiler-core\\dist\\compiler-core.cjs.js:937:28)\r\n at parseElement (D:\\wgf\\My Documents\\GitHub\\vueprojects\\vitepress_demo\\node_modules\\.pnpm\\@vue+compiler-core@3.2.31\\node_modules\\@vue\\compiler-core\\dist\\compiler-core.cjs.js:1125:22)\r\n at parseChildren (D:\\wgf\\My Documents\\GitHub\\vueprojects\\vitepress_demo\\node_modules\\.pnpm\\@vue+compiler-core@3.2.31\\node_modules\\@vue\\compiler-core\\dist\\compiler-core.cjs.js:937:28)\r\n```\n\n### System Info\n\n```shell\n....\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.",[],605,"render error with toc and escapse \u003Ctag>","2023-01-21T14:35:50Z","https://github.com/vuejs/vitepress/issues/605",0.71177965,{"description":3097,"labels":3098,"number":3102,"owner":3022,"repository":3023,"state":3048,"title":3103,"updated_at":3104,"url":3105,"score":3106},"### Describe the bug\n\nA recent update (https://github.com/vuejs/vitepress/pull/1064) added a `word-break: break-word` style to all HTML elements. This leads to unpleasant results such as this in table cells (see the first and last column):\r\n\r\n\u003Cimg width=\"724\" alt=\"Table after\" src=\"https://user-images.githubusercontent.com/243601/192322921-5ab4d6a1-00e3-48d4-af11-c39c8c3e0265.png\">\r\n\r\nWhile before this update the result was much more readable:\r\n\r\n\u003Cimg width=\"729\" alt=\"Table before\" src=\"https://user-images.githubusercontent.com/243601/192323027-c7ffff4a-5989-497d-9aa0-b50b4c3cf216.png\">\r\n\n\n### Reproduction\n\nStackBlitz reproduction with a table:\r\nhttps://stackblitz.com/edit/vitepress-theme-word-break-issue?file=index.md\n\n### Expected behavior\n\nRisky styles such as `word-break: break-word` should not be applied to all elements.\r\n\r\nHandling overflowing content (if any) should be done at the component level, probably with specific solutions for each component.\n\n### System Info\n\n```shell\nSystem:\r\n OS: macOS 12.6\r\n CPU: (8) arm64 Apple M1\r\n Memory: 117.00 MB / 8.00 GB\r\n Shell: 3.5.1 - /opt/homebrew/bin/fish\r\n Binaries:\r\n Node: 16.17.1 - /opt/homebrew/opt/node@16/bin/node\r\n Yarn: 1.22.19 - /opt/homebrew/bin/yarn\r\n npm: 8.19.1 - /Volumes/Pieces/.npm/bin/npm\r\n Browsers:\r\n Chrome: 105.0.5195.125\r\n Firefox Nightly: 107.0a1\r\n Safari: 16.0\r\n npmPackages:\r\n vitepress: ^1.0.0-alpha.16 => 1.0.0-alpha.16\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.",[3099],{"name":3100,"color":3101},"theme","0754FB",1402,"Consider rolling back the global `word-break: break-word` style","2023-01-21T14:25:23Z","https://github.com/vuejs/vitepress/issues/1402",0.716194,{"description":3108,"labels":3109,"number":3110,"owner":3022,"repository":3023,"state":3048,"title":3111,"updated_at":3112,"url":3113,"score":3114},"### 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.71778506,["Reactive",3116],{},["Set"],["ShallowReactive",3119],{"$fTRc1wZytZ_XrK4EfJfei_Sz-An4H4Yy6syhVxH_PVJc":-1,"$ffkiiHW4s6AUh2XYkMMITUYSa--lXDFU_4XQZU745QbI":-1},"/vuejs/vitepress/1502"]