\n\n### Reproduction\n\n{\n \"devDependencies\": {\n \"vitepress\": \"2.0.0-alpha.2\"\n },\n \"scripts\": {\n \"docs:dev\": \"vitepress dev docs\",\n \"docs:build\": \"vitepress build docs\",\n \"docs:preview\": \"vitepress preview docs\"\n }\n}\n\n### Expected behavior\n\n在被注释的代码行后面添加 `// [!code highlight]` 高亮的位置错误。\n\n```js\nexport default {\n data () {\n return {\n // msg1: '1 Highlighted!' // [!code highlight]\n }\n }\n}\n```\n\n\u003Cimg width=\"705\" alt=\"Image\" src=\"https://github.com/user-attachments/assets/f1f5e3ce-3bc6-4939-b199-d9ac120ffab8\" />\n\n\n### System Info\n\n```Text\nChrome: 132.0.6834.160\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.",[3091],{"name":3092,"color":3093},"upstream","BF29ED",4546,"代码高亮渲染异常","2025-02-23T04:43:37Z","https://github.com/vuejs/vitepress/issues/4546",0.71618164,{"description":3100,"labels":3101,"number":3102,"owner":3022,"repository":3023,"state":3048,"title":3103,"updated_at":3104,"url":3105,"score":3106},"### Describe the bug\n\ncontent 部分没有 overflow:hidden 导致很长的滚动条(也有可能是我的图片太大?)\r\n\r\n[github here](https://github.com/Mt-Youya/DeepLearning-500-questions)\r\n\r\n[site here](https://deeplearning-500-questions.pages.dev/zh-cn/ch02_%E6%9C%BA%E5%99%A8%E5%AD%A6%E4%B9%A0%E5%9F%BA%E7%A1%80/%E7%AC%AC%E4%BA%8C%E7%AB%A0_%E6%9C%BA%E5%99%A8%E5%AD%A6%E4%B9%A0%E5%9F%BA%E7%A1%80.html)\n\n### Reproduction\n\n我fork 别人的仓库,不是我自己写的, 它原本用的是 docsify 我想提个pr用vitepress 试试,然后就出现了这个bug\n\n### Expected behavior\n\n没有滚动条\n\n### System Info\n\n```Text\nVersion 122.0.6261.112 (Official Build) (64-bit)\r\nwin11\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.",[],3644,"CSS bug","2024-03-19T00:07:30Z","https://github.com/vuejs/vitepress/issues/3644",0.71726334,{"description":3108,"labels":3109,"number":3110,"owner":3022,"repository":3023,"state":3048,"title":3111,"updated_at":3112,"url":3113,"score":3114},"### Is your feature request related to a problem? Please describe.\r\n\r\nVite sets OGP tags globally by [`.vitepress/config.ts`](https://github.com/vitejs/vite/blob/main/docs/.vitepress/config.ts#L12-L23).\r\n\r\nBut we want to override OGP tags for some indivisual pages (for example, [Vite 3 release post](https://vitejs.dev/blog/announcing-vite3.html)).\r\nNow we set those by [frontmatter](https://github.com/vitejs/vite/blob/24f4f62c5807f40ec45ec5834328d4b5cec47753/docs/blog/announcing-vite3.md?plain=1#L3-L30) and actually seems to work.\r\nThough the tags are duplicated like this:\r\n```html\r\n \u003Cmeta property=\"og:type\" content=\"website\">\r\n \u003Cmeta property=\"og:title\" content=\"Vite\">\r\n \u003Cmeta property=\"og:image\" content=\"https://vitejs.dev/og-image.png\">\r\n \u003Cmeta property=\"og:url\" content=\"https://vitejs.dev\">\r\n \u003Cmeta property=\"twitter:description\" content=\"Next Generation Frontend Tooling\">\r\n \u003Cmeta property=\"twitter:title\" content=\"Vite\">\r\n \u003Cmeta property=\"twitter:card\" content=\"summary_large_image\">\r\n \u003Cmeta property=\"twitter:image\" content=\"https://vitejs.dev/og-image.png\">\r\n \u003Cmeta property=\"twitter:url\" content=\"https://vitejs.dev\">\r\n \u003Cscript>(()=>{const e=localStorage.getItem(\"vitepress-theme-appearance\"),a=window.matchMedia(\"(prefers-color-scheme: dark)\").matches;(!e||e===\"auto\"?a:e===\"dark\")&&document.documentElement.classList.add(\"dark\")})();\u003C/script>\r\n \u003Cmeta name=\"og:type\" content=\"website\">\r\n \u003Cmeta name=\"og:title\" content=\"Announcing Vite 3\">\r\n \u003Cmeta name=\"og:image\" content=\"https://vitejs.dev/og-image-announcing-vite3.png\">\r\n \u003Cmeta name=\"og:url\" content=\"https://vitejs.dev/blog/announcing-vite3\">\r\n \u003Cmeta name=\"twitter:description\" content=\"Vite 3 Release Announcement\">\r\n \u003Cmeta name=\"twitter:title\" content=\"Announcing Vite 3\">\r\n \u003Cmeta name=\"twitter:card\" content=\"summary_large_image\">\r\n \u003Cmeta name=\"twitter:image\" content=\"https://vitejs.dev/og-image-announcing-vite3.png\">\r\n \u003Cmeta name=\"twitter:url\" content=\"https://vitejs.dev/blog/announcing-vite3\">\r\n```\r\nThe OGP spec does not mention anything when a multiple tags existed. So I think this behavior is implementation dependent.\r\n\r\n\r\n### Describe the solution you'd like\r\n\r\nGive a way to declare that a head tag should only exist once on config.\r\n\r\nBut we need to consider what tags should be treated as same. For example, `\u003Cmeta property=\"og:title\" content=\"foo\" >` and `\u003Cmeta property=\"og:title\" content=\"bar\" >` are same, when tag name and the value of `property` attribute is same.\r\n\r\n\r\n### Describe alternatives you've considered\r\n\r\nGive a way to declare that a head tag should override it on frontmatter.\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.",[],975,"override head tags on indivisual page","2023-01-21T14:30:24Z","https://github.com/vuejs/vitepress/issues/975",0.7207096,["Reactive",3116],{},["Set"],["ShallowReactive",3119],{"$fTRc1wZytZ_XrK4EfJfei_Sz-An4H4Yy6syhVxH_PVJc":-1,"$fvOSZUhXYKAY8dxk5jac2qcKKyJQco5lSGu6XnnUen0A":-1},"/vuejs/vitepress/4812"]