(\\s*[^\\\u003C\\>]*\\s*)\\\u003C\\/label\\>/g, (_, $1) => {\r\n return `>${getLogoTagString($1)} ${$1}\u003C/label>`\r\n })\r\n }\r\n}\r\n\r\nexport default langPlugin\r\n\r\n```\n\n### Describe the solution you'd like\n\n```diff\r\n- import MarkdownIt from 'markdown-it';\r\n+ import type { MarkdownIt } from 'vitepress'\r\nimport { getLogoTagString } from '../content'\r\n\r\nfunction langPlugin(md: MarkdownIt) {\r\n const temp = md.renderer!.rules!.fence!.bind(md.renderer.rules)\r\n md.renderer.rules.fence = (tokens, idx, options, env, slf) => {\r\n const token = tokens[idx]\r\n if (getLogoTagString(token.info)) {\r\n const result = token.info.match(/^\\b([\\w\\.]*)\\b/)\r\n if (!result)\r\n return temp(tokens, idx, options, env, slf)\r\n const [_, lang] = result\r\n const content = temp(tokens, idx, options, env, slf)\r\n const value = getLogoTagString(lang)\r\n return content.replace(`\u003Cspan class=\"lang\">${lang}\u003C/span>`, `\u003Cspan class=\"lang icon\">${value}\u003C/span>`)\r\n }\r\n\r\n return temp(tokens, idx, options, env, slf)\r\n }\r\n\r\n // insert icon before\r\n // https://github.com/vuejs/vitepress/blob/0c434bf537a64b06fc0bc630b4ee58b9fa67309b/src/node/markdown/plugins/containers.ts#L95\r\n const rawCodeGroupRender = md.renderer.rules['container_code-group_open']!\r\n \r\n md.renderer.rules['container_code-group_open'] = (tokens, idx, options, env, slf) => {\r\n const content: string = rawCodeGroupRender(tokens, idx, options, env, slf)\r\n // match: >index.ts\u003C/label>\r\n return content.replace(/>(\\s*[^\\\u003C\\>]*\\s*)\\\u003C\\/label\\>/g, (_, $1) => {\r\n return `>${getLogoTagString($1)} ${$1}\u003C/label>`\r\n })\r\n }\r\n}\r\n\r\nexport default langPlugin\r\n\r\n```\n\n### Describe alternatives you've considered\n\nNot yet.\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.",[],4146,"closed","Support exporting in `MarkdownIt` interface to be compatible with Markdown plugins users have written themselves","2024-08-25T04:42:06Z","https://github.com/vuejs/vitepress/issues/4146",0.70897067,{"description":2933,"labels":2934,"number":2938,"owner":2874,"repository":2875,"state":2927,"title":2939,"updated_at":2940,"url":2941,"score":2942},"## Overview \r\n\r\nWe have multiple service we want to have documentation using vitepress, I know we can easily deploy the website using static web app, **but it seems impossible to host those documentation site under one domain with base url ?**\r\n\r\nWhat I need is something like \r\n- https://companydomain/web/projectA -> projectA's vitepress website \r\n- https://compnaydomain/web/projectB -> projectB's vitepress website \r\n\r\nIs that possible using azure static web app? If not, I am considering using azure app service, since it provide virtual application which may seems to fit in these kind of situation, but in this case, how do we host a website in azure web app with vitepress ? since it didn't have a nodjs server",[2935],{"name":2936,"color":2937},"question","5D5FAE",2386,"How to manage multiple vitepress website with azure static web app using base url ?","2023-05-19T11:07:52Z","https://github.com/vuejs/vitepress/issues/2386",0.7274455,{"description":2944,"labels":2945,"number":2947,"owner":2874,"repository":2875,"state":2927,"title":2948,"updated_at":2949,"url":2950,"score":2951},"### Describe the bug\n\nIn mobile, there is a gap on the leftmost side of the code block in [this address](https://vitepress.vuejs.org/guide/deploying.html), which is not consistent with the style of the code block on other pages.\r\n\r\n\r\n\n\n### Reproduction\n\nhttps://vitepress.vuejs.org/guide/deploying.html\n\n### Expected behavior\n\nConsistent with the rest of the page code block style.\n\n### System Info\n\n```shell\nSystem:\r\n OS: Windows 10 10.0.19044\r\n CPU: (8) x64 Intel(R) Core(TM) i5-9400 CPU @ 2.90GHz\r\n Memory: 3.59 GB / 15.9 GB\r\nBinaries:\r\n Node: 16.10.0 - C:\\Program Files\\nodejs\\node.EXE\r\n Yarn: 1.22.17 - ~\\AppData\\Roaming\\npm\\yarn.CMD\r\n npm: 7.24.0 - C:\\Program Files\\nodejs\\npm.CMD\r\nBrowsers:\r\n Edge: Spartan (44.19041.1266.0), Chromium (103.0.1264.62)\r\n Internet Explorer: 11.0.19041.1566\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.",[2946],{"name":2897,"color":2898},1102,"Inconsistency of code block style in mobile","2023-01-21T14:28:56Z","https://github.com/vuejs/vitepress/issues/1102",0.7431786,{"description":2953,"labels":2954,"number":2955,"owner":2874,"repository":2875,"state":2927,"title":2956,"updated_at":2957,"url":2958,"score":2959},"### Describe the bug\r\n\r\nWhile auditing another site (which uses vitepress), I noticed the contrast ratio on code languages and line numbers doesn't meet WCAG guidelines.\r\n\r\n\u003Cimg width=\"700\" alt=\"\" src=\"https://github.com/user-attachments/assets/84ef9a18-94b2-41ad-bf0a-42991f01a5cb\" />\r\n\r\n\u003Cimg width=\"700\" alt=\"\" src=\"https://github.com/user-attachments/assets/a0d88f61-9edd-4d28-b60e-a6b8f5d25321\" />\r\n\r\nLooking back to color system PR [#2797](https://github.com/vuejs/vitepress/pull/2797) it seems as though `--vp-c-text-3` was not intended to be used with `--vp-c-bg-alt`\r\n\r\n> XXX-3: The color for solid background, such as bg color of the button. It must satisfy the contrast ratio with pure white (#ffffff) text on top of it\r\n\r\nI have a possible fix available and will submit a PR\r\n\r\n### System Info\r\n\r\n```Text\r\nSystem:\r\n OS: macOS 14.5\r\n CPU: (10) arm64 Apple M1 Max\r\n Memory: 5.63 GB / 32.00 GB\r\n Shell: 5.9 - /bin/zsh\r\n Browsers:\r\n Chrome: 131.0.6778.265\r\n Edge: 131.0.2903.112\r\n Safari: 17.5\r\n```\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.",[],4486,"Code block contrast ratio","2025-02-23T04:43:36Z","https://github.com/vuejs/vitepress/issues/4486",0.7459975,{"description":2961,"labels":2962,"number":2966,"owner":2874,"repository":2875,"state":2927,"title":2967,"updated_at":2968,"url":2969,"score":2970},"### Describe the bug\n\n**v1.3.0 手机端嵌套菜单不显示小标题**\r\n**v1.3.0 Mobile Nested Menu Does Not Display Subtitles**\r\n\r\n`NavItem[]`\r\n\r\n```ts\r\nconst navBar: DefaultTheme.NavItem[] = [\r\n {text: '首页', link: '/index'},\r\n //-----------\r\n {\r\n text: '工具集',\r\n items: [\r\n {\r\n text: '工具1',\r\n noIcon:true,\r\n items: [\r\n {text: 'a', link: '/a'},\r\n {text: 'a', link: '/a'},\r\n {text: 'a', link: '/a'},\r\n ]\r\n },\r\n {\r\n text: '工具2',\r\n items: [\r\n {text: 'b', link: '/b'},\r\n {text: 'b', link: '/b'},\r\n {text: 'b', link: '/b'},\r\n ]\r\n }\r\n ]\r\n },\r\n //-----------\r\n {text: '关于我', link: '/about'}\r\n]\r\n```\r\n\r\n\r\n\r\n手机端显示:\r\nMobile display:\r\n\r\n\r\n\r\n电脑端显示:\r\nComputer display:\r\n\r\n\r\n> 当我使用 v1.2.3 时一切正常。\r\n> Everything worked fine when I was using v1.2.3.\r\n\r\nMy English is terrible, and I used a translation tool, so I hope this is understandable.\n\n### Reproduction\n\nI have reproduced the issue. [stackblitz](https://stackblitz.com/edit/vite-bro9hm?file=docs%2F.vitepress%2Fconfig.ts)\n\n### Expected behavior\n\n正常显示\r\nDisplayed normally\n\n### System Info\n\n```Text\nSystem:\r\n OS: Windows 11 10.0.22631\r\n CPU: (32) x64 AMD Ryzen 9 7950X 16-Core Processor\r\n Memory: 38.28 GB / 63.19 GB\r\n Binaries:\r\n Node: 18.20.4 - ~\\AppData\\Local\\fnm_multishells\\106552_1720946934721\\node.EXE\r\n npm: 10.7.0 - ~\\AppData\\Local\\fnm_multishells\\106552_1720946934721\\npm.CMD\r\n Browsers:\r\n Edge: Chromium (126.0.2592.102)\r\n Internet Explorer: 11.0.22621.3527\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.",[2963],{"name":2964,"color":2965},"theme","0754FB",4042,"v1.3.0 Mobile Nested Menu Does Not Display Subtitles","2024-07-22T04:41:59Z","https://github.com/vuejs/vitepress/issues/4042",0.74638474,{"description":2972,"labels":2973,"number":2975,"owner":2874,"repository":2875,"state":2927,"title":2976,"updated_at":2977,"url":2978,"score":2979},"### Is your feature request related to a problem? Please describe.\n\nThe current picture is not clear\n\n### Describe the solution you'd like\n\nMake the same logo in SVG format\n\n### Describe alternatives you've considered\n\nIncrease the clarity of the main icon\n\n### Additional context\n\nIn my opinion, it would be much better if the main icon was in SVG format, because the current one is not very clear (at least it is visible on a 2.8K display)\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.",[2974],{"name":2871,"color":2872},4198,"Make the main icon on the site in svg format","2025-03-19T01:31:04Z","https://github.com/vuejs/vitepress/issues/4198",0.75537914,["Reactive",2981],{},["Set"],["ShallowReactive",2984],{"$fTRc1wZytZ_XrK4EfJfei_Sz-An4H4Yy6syhVxH_PVJc":-1,"$fXza8oHSjQLI7G0_5jzRyZEOW8-7UjlIidHbvyOVNFsk":-1},"/vuejs/vitepress/2288"]