\n```\n\ndocs/AComponent.vue\n\n```vue\n\u003Ctemplate>\n \u003Ch2 id=\"bar\">bar\u003C/h2>\n \u003Ch2 id=\"baz\">baz\u003C/h2>\n\u003C/template>\n```\n\nResult: `## bar` and `## baz` appear in the outline and are linkable, but they have no header‑anchor element, so users cannot easily copy a permalink, and the UI feels a bit inconsistent when hovering the mouse over headings added by the component and the ones written in Markdown.\n\n\n### Describe the solution you'd like\n\nDuring the same client‑side pass that builds the outline, scan for any `\u003Ch1‑h6>` with an `id` but lacking `.header-anchor`, and inject an anchor with the same markup VitePress generates for Markdown headings.\n\n\n### Describe alternatives you've considered\n\nManually adding the anchor works...\n\n```html\n\u003Ch2 id=\"qux\">\n qux\n \u003Ca class=\"header-anchor\" href=\"#qux\" aria-label='Permalink to \"qux {#qux}\"'>​\u003C/a>\n\u003C/h2>\n```\n\n...but is somewhat boilerplate and is brittle. It must be manually added to each place where `\u003Ch1‑h6>` is used and will break if the theme changes.\n\n### Additional context\n\nScreencast of how the repro example looks:\n\n\nhttps://github.com/user-attachments/assets/28deb3dc-47d4-4c16-9d30-f491cfb58fda\n\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.",[],4867,"Auto‑insert `\u003Ca.header‑anchor>` for headings rendered by Vue components","2025-07-30T19:09:15Z","https://github.com/vuejs/vitepress/issues/4867",0.8046179,{"description":3082,"labels":3083,"number":3085,"owner":3029,"repository":3030,"state":3031,"title":3086,"updated_at":3087,"url":3088,"score":3089},"### Is your feature request related to a problem? Please describe.\r\n\r\nWe would like to have a way to easy navigate between home page and subpages.\r\n\r\n\r\n### Describe the solution you'd like\r\n\r\nNow, when we press on [Nav](https://vitepress.dev/reference/default-theme-nav) element it points to the home page. It would be useful to have a way to set a link to that element\r\n - Add `nav-link` to be used when you are on home page\r\n - Add `nav-sub-link` to be used when you are on subpage, and if not defined is equal to `nav-link`\r\n\r\nIn that way, we can easy navigate between home and subpages by press on same element. For example\r\n```javascript\r\nexport default {\r\n themeConfig: {\r\n nav: [\r\n { nav-link: '/markdown-examples'},\r\n { nav-sub-link: '/'},\r\n { text: 'Markdown Examples', link: '/markdown-examples' }\r\n ]\r\n }\r\n}\r\n```\r\n\r\n### Describe alternatives you've considered\r\n\r\nNo alternatives right now?\r\n\r\n### Additional context\r\n\r\nAnd example about how it works now\r\n\r\nhttps://github.com/user-attachments/assets/df4e051b-242c-4cbe-a3bd-8fa39ba25848\r\n\r\n\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.",[3084],{"name":3043,"color":3044},4232,"Make Nav URL customisable for home page and subpages","2024-12-03T17:27:48Z","https://github.com/vuejs/vitepress/issues/4232",0.81112343,{"description":3091,"labels":3092,"number":3093,"owner":3029,"repository":3030,"state":3094,"title":3095,"updated_at":3096,"url":3097,"score":3098},"**Is your feature request related to a problem? Please describe.**\r\n\r\nConsider the following directory structure\r\n\r\n```\r\n- docs\r\n-- .vitepress\r\n--- theme\r\n---- index.ts \u003C--- import app.css here\r\n-- index.md\r\n- src\r\n-- css\r\n--- app.css \u003C--- import this file\r\n```\r\n\r\n**Describe the solution you'd like**\r\n\r\nAbility to import files from /src folder in the example above\r\n\r\n\r\n",[],180,"closed","Import modules/files from parent folder","2023-01-21T16:24:00Z","https://github.com/vuejs/vitepress/issues/180",0.76129425,{"description":3100,"labels":3101,"number":3105,"owner":3029,"repository":3030,"state":3094,"title":3106,"updated_at":3107,"url":3108,"score":3109},"### Describe the bug\n\nIf the `code sample` reached a bit long, the `copy button` and `copied tip` are not clear enough to recognize.\n\n### Reproduction\n\n\r\n\n\n### Expected behavior\n\n`copy button` to be clear. \n\n### System Info\n\n```shell\n-\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.",[3102],{"name":3103,"color":3104},"theme","0754FB",819,"copy to clipboard button style","2023-03-08T00:04:46Z","https://github.com/vuejs/vitepress/issues/819",0.7845561,{"description":3111,"labels":3112,"number":3113,"owner":3029,"repository":3030,"state":3094,"title":3114,"updated_at":3115,"url":3116,"score":3117},"### Is your feature request related to a problem? Please describe.\n\ncurrently, when nav link is for example, https://github.com, it opens a new tab\n\n### Describe the solution you'd like\n\nin some cases, we want the link to be opened at the same tab, so something like:\r\n\r\nnav: [\r\n { text: 'Configs', link: 'https://github.com', target: '_self' }\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.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.",[],1212,"nav support target: '_self'","2023-03-18T00:04:20Z","https://github.com/vuejs/vitepress/issues/1212",0.7877899,{"description":3119,"labels":3120,"number":3122,"owner":3029,"repository":3030,"state":3094,"title":3123,"updated_at":3124,"url":3125,"score":3126},"### Is your feature request related to a problem? Please describe.\r\n\r\nI want to use a logo for my documentation site, but when I add a logo in the config file, the page title is pushed to the side of the logo. I am using the `next-theme`, which I know isn't finished :)\r\n\r\nSee the image below.\r\n\r\n\r\n\r\n### Describe the solution you'd like\r\n\r\nIt would be nice to hide the title in the header if there is a logo specified - or at least have the option to hide it.\r\n\r\n### Describe alternatives you've considered\r\n\r\n_No response_\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] 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.",[3121],{"name":3103,"color":3104},637,"[next] Hide title if logo is specified","2023-01-21T14:35:47Z","https://github.com/vuejs/vitepress/issues/637",0.7903628,["Reactive",3128],{},["Set"],["ShallowReactive",3131],{"$fTRc1wZytZ_XrK4EfJfei_Sz-An4H4Yy6syhVxH_PVJc":-1,"$f5VKX9gBvmhA7aI9aDBHXrYcqMKGoXsasBtbFvrEGD6I":-1},"/vuejs/vitepress/715"]