\r\n\u003Cpath d=\"M5,1h3v1h-2v1h2v3h-3v-1h2v-1h-2\"/>\r\n\u003Cpath d=\"M9,2h3v2h-1v-1h-1v3h-1\"/>\r\n\u003C/g>\r\n\u003C/svg>\r\n```\r\n(we would have to check if we have permissions for this SVG to be used)\n\n### Describe alternatives you've considered\n\nProviding a custom SVG.\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.",[2940,2943],{"name":2941,"color":2942},"theme","0754FB",{"name":2892,"color":2893},4256,"Feature request: add social link icon for JSR to default template","2024-11-12T04:43:10Z","https://github.com/vuejs/vitepress/issues/4256",0.78044665,{"description":2950,"labels":2951,"number":2953,"owner":2869,"repository":2870,"state":2921,"title":2954,"updated_at":2955,"url":2956,"score":2957},"### Describe the bug\n\n# dependencies used\r\n - \"ant-design-vue\": \"3.2.20\". \r\n - \"vitepress\": \"^1.0.1\".\r\n - \"vue\": \"^3.2.38\".\r\n - \"@vitejs/plugin-vue\": \"^5.0.4\"\r\n - \"vite\": \"^5.2.0\"\r\n\r\n# A custom layout in .vitepress/theme like below. \r\n\r\n``` vue\r\n\u003Ctemplate>\r\n \u003Cdiv>\r\n \u003CButton @click=\"handleClick\">切换 显示和隐藏\u003C/Button>\r\n \u003CEmpty v-if=\"visible\" />\r\n \u003CEmpty />\r\n \u003C/div>\r\n\u003C/template>\r\n\u003Cscript lang=\"ts\" setup>\r\nimport { Empty } from 'ant-design-vue';\r\nimport { ref } from \"vue\"\r\nconst visible = ref(true)\r\n\r\nconst handleClick = () => {\r\n visible.value = !visible.value\r\n\r\n}\r\n\u003C/script>\r\n\r\n```\r\n\n\n### Reproduction\n\n# Steps\r\n1. build. \r\nvitepress build docs.\r\n2. serve.\r\nvitepress serve docs. \r\n3. Click Button in the page.\r\n\r\n\r\n# Problem I face \r\nEverything is normal at the first.But when I click the button to change the element in the page, 'Empty' component cannot be rendered.\r\n\u003Cimg width=\"1672\" alt=\"image\" src=\"https://github.com/vuejs/vitepress/assets/43191187/00a0982a-5c11-47bc-adad-8e887380493a\">\r\n\n\n### Expected behavior\n\n# Expected. \r\nNo matter re-render times, I hope it can be rendered normal.\r\n\r\n\u003Cimg width=\"1676\" alt=\"image\" src=\"https://github.com/vuejs/vitepress/assets/43191187/74275c38-190d-49b5-a53a-4f23e2d123c7\">\r\n\n\n### System Info\n\n```Text\nThere's no any extra info.\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":2916,"color":2917},3718,"ant-design-vue some components cannot render twice under vitepress build.","2024-04-28T12:25:19Z","https://github.com/vuejs/vitepress/issues/3718",0.7821008,{"description":2959,"labels":2960,"number":2962,"owner":2869,"repository":2870,"state":2921,"title":2963,"updated_at":2964,"url":2965,"score":2966},"### Describe the bug\n\n.\n\n### Reproduction\n\n.\n\n### Expected behavior\n\n.\n\n### System Info\n\n```Text\n.\n```\n\n\n### Additional context\n\n\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":2916,"color":2917},3551,"SyntaxError: The requested module 'shiki' does not provide an export named 'isPlaintext'","2024-02-14T00:04:27Z","https://github.com/vuejs/vitepress/issues/3551",0.79254746,{"description":2968,"labels":2969,"number":2973,"owner":2869,"repository":2870,"state":2921,"title":2974,"updated_at":2975,"url":2976,"score":2977},"### Is your feature request related to a problem? Please describe.\n\n如果代码块中的代码特别长特别多的时候有时候想高亮一大片就特别麻烦,需要每行都写`[!code ++]` 或者`[!code --]`标记\n\n\n现在的方式:\n````\n ```js\n foo // [!code ++]\n foo // [!code ++]\n foo // [!code ++]\n foo // [!code ++]\n foo // [!code ++]\n foo // [!code ++]\n foo // [!code ++]\n foo // [!code ++]\n foo // [!code ++]\n bar // [!code ++]\n bar // [!code ++]\n bar // [!code ++]\n bar // [!code ++]\n bar // [!code ++]\n ```\n````\n\n希望的方式\n````\n ```js\n foo // [!code ++:start]\n foo \n foo \n foo \n foo \n foo \n foo \n foo \n foo \n bar \n bar \n bar \n bar \n bar // [!code ++:end]\n ```\n````\n\n\n\n为什么会有这个想法是因为这是从实际的文档维护中遇到的麻烦的地方,并不是我无端的想法,希望可以把这个特性内置到vitepress中\n\n\n\n### Describe the solution you'd like\n\n这里有一个解决方案\n也是我之前提出的问题[#4602](https://github.com/vuejs/vitepress/issues/4602),根据答案进行的演化\n```js\nimport { defineConfig } from 'vitepress'\n\nexport default defineConfig({\n markdown: {\n codeTransformers: [\n {\n span(span, i, j, line) {\n if (\n !['js', 'javascript', 'ts', 'typescript'].includes(\n this.options.lang,\n )\n ) {\n return\n }\n\n const text = span.children[0]\n if (!text || text.type !== 'text') return\n\n const startMarker = '[!code ++:start]'\n const endMarker = '[!code ++:end]'\n const markers = [startMarker, endMarker]\n\n if (markers.some((marker) => text.value.includes(marker))) {\n this.addClassToHast(this.pre, 'has-diff')\n this.addClassToHast(line, ['diff', 'add'])\n }\n if (text.value.includes(startMarker)) {\n text.value = text.value.slice(0, -20)\n this.insideHighlightBlock = true // 标记高亮开始\n } else if (text.value.includes(endMarker)) {\n text.value = text.value.slice(0, -20)\n this.insideHighlightBlock = false // 标记高亮结束\n }\n },\n\n line(line, i) {\n if (this.insideHighlightBlock) {\n // 从开始标记开始高亮\n this.addClassToHast(line, ['diff', 'add'])\n }\n },\n }\n ]\n }\n})\n```\n\n上面的代码考虑的还是不够周全,但是想法和简单实现已经给出,如果觉得可行,请内置到viterepss中\n\n\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.",[2970],{"name":2971,"color":2972},"upstream","BF29ED",4613,"代码块差异效果支持开始和结束行的使用方式","2025-03-17T04:44:41Z","https://github.com/vuejs/vitepress/issues/4613",0.7969146,["Reactive",2979],{},["Set"],["ShallowReactive",2982],{"$fTRc1wZytZ_XrK4EfJfei_Sz-An4H4Yy6syhVxH_PVJc":-1,"$fHloLrAGffgztkTm8RppmNmRGSQyK9vo374R801CdGdU":-1},"/vuejs/vitepress/4245"]