'\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,"closed","Custom element support","2023-01-21T14:34:18Z","https://github.com/vuejs/vitepress/issues/735",0.7244766,{"description":2914,"labels":2915,"number":2916,"owner":2874,"repository":2875,"state":2908,"title":2917,"updated_at":2918,"url":2919,"score":2920},"### Describe the bug\n\nthis is more a question that could lead to a feature request. See the repro below.\n\n### Reproduction\n\nI'd like to override a css style on one page only.\r\n\r\nOn a default vitepress site, duplicate the `index.md` page, to `index2.md`. Then in index add at the bottom:\r\n\r\n```\r\n\u003Cstyle>\r\n .item.grid-6, .item.grid-4, .item.grid-3, .item.grid-2{\r\n width: calc(100% / 1) !important;\r\n }\r\n\u003C/style>\r\n```\r\nThis will make the vpfeatures span across the whole page at any screen size.\r\n\r\nThis works fine on a quick sight, but, when I browse back to `index.md`, also on this page they are page spanned. If I reload the page however there are again 3 features per page span.\r\n\r\nI'd like the style override to be scoped only on page index2. Of course I could duplicate the component, rename it, and change the component style but it sounds like a overkill. I was wondering there must be a more straight forward way to do a page-scoped css override.\r\n\n\n### Expected behavior\n\nStyle to be page scoped.\n\n### System Info\n\n```Text\nAny.\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.",[],3172,"easily override a style on a single page scope","2023-11-14T00:04:42Z","https://github.com/vuejs/vitepress/issues/3172",0.7340428,{"description":2922,"labels":2923,"number":2925,"owner":2874,"repository":2875,"state":2908,"title":2926,"updated_at":2927,"url":2928,"score":2929},"### Is your feature request related to a problem? Please describe.\r\n\r\nI'd like to override `\u003Cmeta name=\"description\">` for each page via `transformHead()`\r\n\r\nhttps://vitepress.dev/reference/site-config#transformhead\r\n\r\nHow it only adds it. So there are 2 `\u003Cmeta description>`s.\r\n\r\n### Describe the solution you'd like\r\n\r\nI'd like to get a chance to remove or override the default `\u003Cmeta description>` for a certain page.\r\n\r\n### Describe alternatives you've considered\r\n\r\nOr having an option to disable the default `\u003Cmeta description>`.\r\n\r\n### Additional context\r\n\r\nReproduction link: https://github.com/Jinjiang/reproductions/tree/vitepress-head-dedupe-20230728\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.dev).\r\n- [X] Read the [Contributing Guidelines](https://github.com/vuejs/vitepress/blob/main/.github/contributing.md).\r\n- [X] Check that there isn't already an issue that asks for the same feature to avoid creating a duplicate.",[2924],{"name":2868,"color":2869},2695,"Override/deduplicate meta heads in transformHead()","2023-08-06T00:04:30Z","https://github.com/vuejs/vitepress/issues/2695",0.735546,{"description":2931,"labels":2932,"number":2935,"owner":2874,"repository":2875,"state":2908,"title":2936,"updated_at":2937,"url":2938,"score":2939},"### Describe the bug\n\nI am writing a transformHead function that would automatically generate some meta tags.\r\n\r\nSome meta tags would have content as an URL (e.g. `og:image`).\r\n\r\nSince the content is [escaped](https://github.com/vuejs/vitepress/blob/main/src/node/build/render.ts#L249-L255), it makes it impossible to do so.\n\n### Reproduction\n\nhttps://stackblitz.com/edit/vite-8sef84\r\n\r\nI have added this\r\n```ts\r\n transformHead() {\r\n return [\r\n [\r\n 'meta',\r\n {\r\n name: 'og:image',\r\n content:\r\n 'https://static.independent.co.uk/s3fs-public/thumbnails/image/2017/07/11/11/harold-0.jpg?width=1200&something',\r\n },\r\n ],\r\n ];\r\n },\r\n```\r\n\r\nAnd if you inspect the HTML generated, the meta tag is\r\n\r\n```\r\n\u003Cmeta name=\"og:image\" content=\"https://static.independent.co.uk/s3fs-public/thumbnails/image/2017/07/11/11/harold-0.jpg?width=1200&something\">\r\n```\n\n### Expected behavior\n\nto generate unescaped URLs\r\n\r\n\r\n```diff\r\n-\u003Cmeta name=\"og:image\" content=\"https://static.independent.co.uk/s3fs-public/thumbnails/image/2017/07/11/11/harold-0.jpg?width=1200&something\">\r\n+\u003Cmeta name=\"og:image\" content=\"https://static.independent.co.uk/s3fs-public/thumbnails/image/2017/07/11/11/harold-0.jpg?width=1200&something\">\r\n```\n\n### System Info\n\n```shell\nsuccess Install finished in 1.095s\r\n\r\n\r\n System:\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.64\n```\n\n\n### Additional context\n\nI understand that in most cases we would need to escape the value in attributes. But perhaps we can do either of the followings to allow cases like this:\r\n\r\n1. if the value is URL-like, do not escape; or\r\n2. add a `doNotEscape` option to `HeadConfig` to hint the compiler not to escape.\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.",[2933,2934],{"name":2885,"color":2886},{"name":2888,"color":2889},2190,"transformHead's content got escaped","2023-09-25T00:04:31Z","https://github.com/vuejs/vitepress/issues/2190",0.73661095,{"description":2941,"labels":2942,"number":2943,"owner":2874,"repository":2875,"state":2908,"title":2944,"updated_at":2945,"url":2946,"score":2947},"### Is your feature request related to a problem? Please describe.\n\nWhen the user configures build hooks, the theme's build hooks are overwritten.\r\n\r\n当用户配置 build hooks 时, 会覆盖掉主题的 build hooks.\n\n### Describe the solution you'd like\n\nFor example, when there is a `transformHead` in the theme, the user adds a `transformHead` in their configuration to override the processing of the theme and has to handle it as follows: Is it possible to place this processing inside `vitepress`?\r\n\r\n以为 `transformHead` 为例, 当主题里存在 `transformHead` , 用户在自己配置里添加 `transformHead` 会覆盖掉主题的处理, 不得不像下面那样处理, 能否将这种处理放置在 `vitepress` 内部处理呢?\r\n\r\n``` ts\r\n// user config\r\nimport Config from 'vitepress-theme-xxx';\r\n\r\n{\r\n async transformHead(content) {\r\n const { transformHead } = await Config()\r\n if (transformHead) {\r\n\t transformHead(content)\r\n }\r\n // do something\r\n }\r\n}\r\n```\r\n---\r\n\r\nIt seems that useRouter's `onBeforeRouteChange` will also exist in `vitepress`, and overrides will also exist when multiple internal components declare onBeforeRouteChange\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- [ ] Check that there isn't already an issue that asks for the same feature to avoid creating a duplicate.",[],3109,"When the user configures build hooks, the theme's build hooks are overwritten","2023-10-28T00:04:01Z","https://github.com/vuejs/vitepress/issues/3109",0.74118036,{"description":2949,"labels":2950,"number":2954,"owner":2874,"repository":2875,"state":2908,"title":2955,"updated_at":2956,"url":2957,"score":2958},"Feedback from Vite team that they would like to translate this bit. Let's do it. Maybe `themeConfig.outlineHeading` option 🤔 ?\r\nhttps://ti.to/frontendlove/jsworld-and-vue-2022/discount/community4ever",[2951],{"name":2952,"color":2953},"theme","0754FB",689,"Make \"On this page\" text configurable","2023-01-21T14:34:23Z","https://github.com/vuejs/vitepress/issues/689",0.744599,{"description":2960,"labels":2961,"number":2965,"owner":2874,"repository":2875,"state":2908,"title":2966,"updated_at":2967,"url":2968,"score":2969},"### Is your feature request related to a problem? Please describe.\n\nNope.\n\n### Describe the solution you'd like\n\nProvide a config option, like `lastUpdated`.\n\n### Describe alternatives you've considered\n\n_No response_\n\n### Additional context\n\nNot very familiar with Node and Vite. I tried to do it on my own, but failed with 'process is not defined'. Any help?\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.",[2962],{"name":2963,"color":2964},"question","5D5FAE",3001,"Support to show page contributors","2023-10-01T00:04:52Z","https://github.com/vuejs/vitepress/issues/3001",0.749082,["Reactive",2971],{},["Set"],["ShallowReactive",2974],{"$fTRc1wZytZ_XrK4EfJfei_Sz-An4H4Yy6syhVxH_PVJc":-1,"$fssw4Ao3pPl2jDyLcB6BubBqzSJxP8VTY-z4ZOZ0xIeI":-1},"/vuejs/vitepress/975"]