'\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.71999586,{"description":2910,"labels":2911,"number":2915,"owner":2866,"repository":2867,"state":2880,"title":2916,"updated_at":2917,"url":2918,"score":2919},"### Describe the bug\n\nI have VitePress installed at /docs/ and I would like to have a clickable item pointing to /other-dir/ from the navigation menu (config.js -> themeConfig -> nav []). However, when setting `target: '_self'`, the a href stop working. I believe that the function catching those clicks is triggering but confused that:\r\n\r\n- The url is on the same website\r\n- It is outside of the urls VitePress knows about, so it thinks those don't exist\r\n\r\nWhen changing the target url from website.com/other-dir/ to another-website.com, `target: '_self'` works just fine.\n\n### Reproduction\n\nInstall VitePress in a subdirectory and try to reach outside of the install directory, but on the same domain, without using `_blank`.\n\n### Expected behavior\n\n`_self` shouldn't crash a href.\n\n### System Info\n\n```sh\nLatest\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.",[2912],{"name":2913,"color":2914},"has-workaround","1B4515",2487,"Nav ahref with target=\"_self\" breaks the url when the link points to the same website, but to a directory other than VitePress's","2023-07-09T00:05:24Z","https://github.com/vuejs/vitepress/issues/2487",0.72456795,{"description":2921,"labels":2922,"number":2923,"owner":2866,"repository":2867,"state":2880,"title":2924,"updated_at":2925,"url":2926,"score":2927},"### Is your feature request related to a problem? Please describe.\n\nI have put several feature items in index.md with links, and some of them link to my other html project pages, so it needs to be automatically redirected to new tab pages, but now they can't.\n\n### Describe the solution you'd like\n\nProvide a property \"target\" for setting the redirect action for feature items.\r\n\r\nExample:\r\n\r\nSetting `target: _blank` for \"Guide\" feature item, and setting nothing for \"Reference\" item. \r\n\r\nWhen click on \"Guide\" feature item, it will open a new tab page and redirect to it, while flash in self page when click on \"Reference\" page.\r\n\r\n```md\r\n---\r\nlayout: home\r\n\r\ntitle: VitePress\r\ntitleTemplate: Vite & Vue Powered Static Site Generator\r\n\r\nhero:\r\n name: VitePress\r\n text: Vite & Vue Powered Static Site Generator\r\n tagline: Simple, powerful, and fast. Meet the modern SSG framework you've always wanted.\r\n actions:\r\n - theme: brand\r\n text: Get Started\r\n link: /guide/getting-started\r\n - theme: alt\r\n text: View on GitHub\r\n link: https://github.com/vuejs/vitepress\r\n image:\r\n src: /vitepress-logo-large.webp\r\n alt: VitePress\r\n\r\nfeatures:\r\n - title: Guide\r\n link: /guide/what-is-vitepress\r\n target: _blank\r\n - title: Reference\r\n link: /Reference/site-config\r\n---\r\n```\r\n\r\n\r\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.",[],2896,"feat: jump to a new tab page when click on a feature item in index page.","2023-09-18T00:04:20Z","https://github.com/vuejs/vitepress/issues/2896",0.72538954,{"description":2929,"labels":2930,"number":2931,"owner":2866,"repository":2867,"state":2880,"title":2932,"updated_at":2933,"url":2934,"score":2935},"### Is your feature request related to a problem? Please describe.\n\n-\n\n### Describe the solution you'd like\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.",[],3164,"When running vitepress, how to point the vite attribute in defineConfig to the viete.config.js file","2023-11-10T00:04:13Z","https://github.com/vuejs/vitepress/issues/3164",0.7254098,{"description":2937,"labels":2938,"number":2939,"owner":2866,"repository":2867,"state":2880,"title":2940,"updated_at":2941,"url":2942,"score":2943},"Vitepress keeps adding `.html` extension to any link referencing a pdf file relative to the page. Seems like it's hard-coded here\r\n\r\nhttps://github.com/vuejs/vitepress/blob/cee0b400d95b610fa47ea79007e03221a140084f/src/node/markdownToVue.ts#L52\r\n\r\nMay be it's the right way and any non-routed link should be put as `\u003Ca>` tag? Just wanted to share this observation.",[],265,"Adding link to (non-html) files from md","2023-01-21T16:20:09Z","https://github.com/vuejs/vitepress/issues/265",0.72841996,{"description":2945,"labels":2946,"number":2950,"owner":2866,"repository":2867,"state":2880,"title":2951,"updated_at":2952,"url":2953,"score":2954},"### Describe the bug\r\n\r\nhttps://github.com/vuejs/vitepress/blob/75ca9e4302c65e3bcc9518f7df928318380f6cf6/src/node/markdown/plugins/highlightLines.ts#L30\r\n\r\n`highlightLinePlugin` is used before `attrs`, and `token.info` is rewritten.\r\n\r\nvia https://github.com/vuejs/vitepress/pull/664#discussion_r902203459\r\n\r\n### Reproduction\r\n\r\n\u003Cimg width=\"177\" alt=\"image\" src=\"https://user-images.githubusercontent.com/8336744/174726207-1c068f94-f597-4d5e-9101-4709a08a60c3.png\">\r\n\r\n\u003Cimg width=\"299\" alt=\"image\" src=\"https://user-images.githubusercontent.com/8336744/174726233-83967c42-db47-4c12-8dbd-0c83a817c448.png\">\r\n\r\n\r\n### Expected behavior\r\n\r\nRender `data=\"asdf\"`\r\n\r\n### System Info\r\n\r\n```shell\r\nSystem:\r\n OS: macOS 13.0\r\n CPU: (10) arm64 Apple M1 Max\r\n Memory: 13.84 GB / 64.00 GB\r\n Shell: 5.8.1 - /bin/zsh\r\n Binaries:\r\n Node: 16.15.1 - ~/Library/Caches/fnm_multishells/95455_1655742557079/bin/node\r\n Yarn: 1.22.19 - ~/Library/Caches/fnm_multishells/95455_1655742557079/bin/yarn\r\n npm: 8.12.1 - ~/Library/Caches/fnm_multishells/95455_1655742557079/bin/npm\r\n Browsers:\r\n Chrome: 102.0.5005.115\r\n Firefox: 101.0.1\r\n Safari: 16.0\r\n npmPackages:\r\n vitepress: ^1.0.0-alpha.2 => 1.0.0-alpha.2\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.",[2947],{"name":2948,"color":2949},"stale","ededed",826,"support adding attributes to code blocks","2023-08-11T00:04:28Z","https://github.com/vuejs/vitepress/issues/826",0.734322,["Reactive",2956],{},["Set"],["ShallowReactive",2959],{"$fTRc1wZytZ_XrK4EfJfei_Sz-An4H4Yy6syhVxH_PVJc":-1,"$fNX5oN2CVMXZfff6n9qf6P7KlR6yKnVLKl_9BoUHrYOQ":-1},"/vuejs/vitepress/1040"]