'\r\n const target = `\u003Cdiv id=\"app\">\u003C/div>`\r\n this.shadow = this.attachShadow({ mode: 'open' })\r\n this.shadow.innerHTML = designSystemCSS + target\r\n createApp(App) // App defined elsewhere ofc\r\n .mount(this.shadow.querySelector('#app'))\r\n }\r\n}\r\n```\n\n### Describe the solution you'd like\n\nProbably just being able to set `compilerOptions.isCustomElement` somewhere would be good enough?\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.vuejs.org).\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.",[],735,"Custom element support","2023-01-21T14:34:18Z","https://github.com/vuejs/vitepress/issues/735",0.7405018,{"description":2909,"labels":2910,"number":2912,"owner":2872,"repository":2873,"state":2895,"title":2913,"updated_at":2914,"url":2915,"score":2916},"### Is your feature request related to a problem? Please describe.\n\nI'm developing an open-source documentation theme and wish to support searching locally, similar to the default theme. After searching the Vitepress source, it seems like third-party themes cannot use this built-in functionality, and we would need to reimplement the feature. \r\n\r\nI could be wrong, and there may be a straightforward way to use it, but if so, there's no documentation for third-party themes, and I wasn't able to find any third-party themes implementing it.\n\n### Describe the solution you'd like\n\nI want to be able to utilize the built-in search functionality.\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.",[2911],{"name":2869,"color":2870},2490,"Allow Third-party Themes To Use Local Search","2023-08-15T00:04:14Z","https://github.com/vuejs/vitepress/issues/2490",0.74936837,{"description":2918,"labels":2919,"number":2923,"owner":2872,"repository":2873,"state":2895,"title":2924,"updated_at":2925,"url":2926,"score":2927},"### Describe the bug\n\nAssume we have below code:\r\n\r\n```md\r\n:::tip\r\n\r\n```html{1}\r\n\u003Cdiv class=\"grid-row grid-cols-2 justify-items-stretch\">\r\n \u003Cdiv>\u003C/div>\r\n \u003Cdiv>\u003C/div>\r\n\u003C/div>\r\n\r\n:::\r\n```\r\n\r\nWith above code we get code block rendered like below:\r\n\r\n\r\n\n\n### Reproduction\n\nAbove code (code block with highlighted lines in custom block)\n\n### Expected behavior\n\nIt should highlight full line\n\n### System Info\n\n```shell\nSystem:\r\n OS: Linux 5.15 Ubuntu 22.04 LTS 22.04 LTS (Jammy Jellyfish)\r\n CPU: (16) x64 AMD Ryzen 7 3700X 8-Core Processor\r\n Memory: 9.52 GB / 15.57 GB\r\n Container: Yes\r\n Shell: 0.12.1 - /home/jd/.xonsh/.venv/bin/xonsh\r\n Binaries:\r\n Node: 16.14.2 - ~/.nvm/versions/node/v16.14.2/bin/node\r\n Yarn: 1.22.18 - ~/.nvm/versions/node/v16.14.2/bin/yarn\r\n npm: 8.5.0 - ~/.nvm/versions/node/v16.14.2/bin/npm\r\n Browsers:\r\n Chrome: 101.0.4951.64\r\n npmPackages:\r\n vitepress: 1.0.0-alpha.4 => 1.0.0-alpha.4\n```\n\n\n### Additional context\n\nNone\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.",[2920],{"name":2921,"color":2922},"theme","0754FB",959,"Line highlighting style in custom block isn't working as expected","2023-01-21T14:30:27Z","https://github.com/vuejs/vitepress/issues/959",0.74953985,{"description":2929,"labels":2930,"number":2934,"owner":2872,"repository":2873,"state":2895,"title":2935,"updated_at":2936,"url":2937,"score":2938},"### Describe the bug\r\n\r\nSuch code:\r\n\r\n````md\r\n```vue twoslash :line-numbers\r\n\u003Cscript setup lang=\"ts\">\r\nimport {ref} from 'vue';\r\n\r\nconst message = ref('Hello world!');\r\n\u003C/script>\r\n```\r\n````\r\n\r\ncode block line numbers would be from 1 to 2, rather than from 1 to 5, [see here](http://localhost:5173/knowledge-base/TODO#bug)\r\n\r\n### Reproduction\r\n\r\nusing such code in `vitepress`:\r\n\r\n````md\r\n```vue twoslash :line-numbers\r\n\u003Cscript setup lang=\"ts\">\r\nimport {ref} from 'vue';\r\n\r\nconst message = ref('Hello world!');\r\n\u003C/script>\r\n```\r\n````\r\n\r\n### Expected behavior\r\n\r\nline number works correctly\r\n\r\n### System Info\r\n\r\n```Text\r\nnone\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.",[2931],{"name":2932,"color":2933},"bug: pending triage","e99695",3972,"[BUG]","2024-06-28T04:43:03Z","https://github.com/vuejs/vitepress/issues/3972",0.7521152,{"description":2940,"labels":2941,"number":2943,"owner":2872,"repository":2873,"state":2895,"title":2944,"updated_at":2945,"url":2946,"score":2947},"### Is your feature request related to a problem? Please describe.\n\nI've built up great docs in Vitepress but I need an API reference built off an OpenApi 3.1 spec. I'm having trouble finding a clean, \"Vitepressy\" way of doing this. \n\n### Describe the solution you'd like\n\nI'd like to setup a Vitepress layout (e.g., \"openapi\") and simply point to either a URL or file OpenAPI 3.1 spec which renders as nicely as [Stoplight Elements](https://stoplight.io/open-source/elements) but inherits the Vitepress theme, navigation, dark mode/lightmode etc.\n\n### Describe alternatives you've considered\n\nI tried to wrap [Stoplight Elements](https://stoplight.io/open-source/elements), but it was very heavy and slow and I couldn't figure out how to get the theme to match:\r\n```\r\n---\r\nlayout: false\r\n---\r\n\r\n\u003Clink rel=\"stylesheet\" href=\"https://unpkg.com/@stoplight/elements/styles.min.css\"/>\r\n\r\n\u003Ctemplate>\r\n \u003Ccomponent\r\n src=\"https://unpkg.com/@stoplight/elements/web-components.min.js\"\r\n :is=\"'script'\"\r\n >\u003C/component>\r\n\u003C/template>\r\n\r\n\u003CClientOnly>\r\n \u003Celements-api\r\n apiDescriptionUrl=\"https://raw.githubusercontent.com/stoplightio/Public-APIs/master/reference/zoom/openapi.yaml\"\r\n layout=\"sidebar\"\r\n router=\"hash\"\r\n />\r\n\u003C/ClientOnly>\r\n```\r\n If there are good other options out there that I don't know about, I'd gladly settle for the recommendation.\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.",[2942],{"name":2869,"color":2870},2091,"Provide supported approach for rendering API docs generated from an OpenAPI spec","2023-08-23T00:04:05Z","https://github.com/vuejs/vitepress/issues/2091",0.75297236,{"description":2949,"labels":2950,"number":2952,"owner":2872,"repository":2873,"state":2895,"title":2953,"updated_at":2954,"url":2955,"score":2956},"### Describe the bug\n\nhighlight does not work when the line has nothing\n\n### Reproduction\n\nhttps://stackblitz.com/edit/vite-yjqj57?file=docs%2Findex.md\n\n### Expected behavior\n\nnull\n\n### System Info\n\n```shell\nnull\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.dev).\n- [X] Check that there isn't already an issue that reports the same bug to avoid creating a duplicate.",[2951],{"name":2921,"color":2922},2061,"highlight does not work when the line has nothing","2023-03-18T00:04:19Z","https://github.com/vuejs/vitepress/issues/2061",0.75425774,{"description":2958,"labels":2959,"number":2961,"owner":2872,"repository":2873,"state":2895,"title":2962,"updated_at":2963,"url":2964,"score":2965},"### Describe the bug\n\nI use [vitepress@latest](https://github.com/vuejs/vitepress) to document and the [tiny-vue@3.19.0](https://github.com/opentiny/tiny-vue) component library, which works fine when running, but when I used the `docs:build`, I got an error with an error message of `Error [ERR_MODULE_NOT_FOUND]: Cannot find module...`\n\n### Reproduction\n\nhttps://stackblitz.com/edit/vite-e44qnyyo?file=docs%2F.vitepress%2Ftheme%2Findex.js\n\n### Expected behavior\n\n`docs:build` executed successfully\n\n### System Info\n\n```Text\nSystem:\r\n OS: Windows 11 10.0.22631\r\n CPU: (16) x64 12th Gen Intel(R) Core(TM) i5-1240P\r\n Memory: 2.60 GB / 15.73 GB\r\n Binaries:\r\n Node: 18.20.3 - C:\\Program Files\\nodejs\\node.EXE\r\n Yarn: 1.22.22 - C:\\Program Files\\nodejs\\yarn.CMD\r\n npm: 10.7.0 - C:\\Program Files\\nodejs\\npm.CMD\r\n pnpm: 9.3.0 - C:\\Program Files\\nodejs\\pnpm.CMD\r\n Browsers:\r\n Edge: Chromium (127.0.2651.74)\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.",[2960],{"name":2932,"color":2933},4440,"docs:dev works but docs:build reports an error: Error [ERR_MODULE_NOT_FOUND]: Cannot find module...","2024-12-30T04:45:10Z","https://github.com/vuejs/vitepress/issues/4440",0.7600613,["Reactive",2967],{},["Set"],["ShallowReactive",2970],{"$fTRc1wZytZ_XrK4EfJfei_Sz-An4H4Yy6syhVxH_PVJc":-1,"$f_p6oT1wJ-ZCSTe3sr3ZzOpl18qDTXk_nH_RNDDWTZHQ":-1},"/vuejs/vitepress/4280"]