\n这是知乎网站的热搜榜\n\n\u003Cimg width=\"807\" height=\"942\" alt=\"Image\" src=\"https://github.com/user-attachments/assets/092b0749-e7d2-4b00-bd5b-172b6725c892\" />\n\n### Reproduction\n\n希望能更新接口,获取最新热搜数据\n\n### Expected behavior\n\n希望能更新接口,获取最新热搜数据\n\n### System Info\n\n```Text\n1.6.20\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.",[3040],{"name":3027,"color":3028},4866,"closed","知乎热搜榜不更新","2025-07-30T04:05:01Z","https://github.com/vuejs/vitepress/issues/4866",0.7270353,{"description":3048,"labels":3049,"number":3051,"owner":3030,"repository":3031,"state":3042,"title":3052,"updated_at":3053,"url":3054,"score":3055},"### Describe the bug\n\nHover state on link in `.vp-doc` is always matched, seems `:hover` is being truncated.\r\n\r\n\r\nCopy button in code block is also messed up.\r\n\r\n\r\n\r\nTable style messed up as well.\r\n\r\nI guess there's a lot more...\n\n### Reproduction\n\nIn `config.ts`:\r\n```ts\r\nexport default defineConfig({\r\n vite: {\r\n css: {\r\n postcss: {\r\n plugins: [\r\n postcssIsolateStyles({\r\n includeFiles: [/vp-doc\\.css/]\r\n }),\r\n ],\r\n },\r\n }\r\n})\r\n```\r\n\r\nI would write one if required, but since my above example is pretty easy to reproduce, I'll leave it blank here.\n\n### Expected behavior\n\nStyle not messed up\r\n\r\n (NOTE: it's working properly if I use `postcss-prefix-selector` straight away instead of using the one from vitepress package)\n\n### System Info\n\n```sh\nSystem:\r\n OS: Windows 10 10.0.19045\r\n CPU: (16) x64 11th Gen Intel(R) Core(TM) i9-11900K @ 3.50GHz\r\n Memory: 38.35 GB / 63.84 GB\r\n Binaries:\r\n Node: 18.16.0 - C:\\NodeJS\\node.EXE\r\n Yarn: 1.22.19 - C:\\NodeJS\\yarn.CMD\r\n npm: 9.8.1 - C:\\NodeJS\\npm.CMD\r\n pnpm: 8.7.0 - C:\\NodeJS\\pnpm.CMD\r\n Browsers:\r\n Edge: Spartan (44.19041.1266.0), Chromium (116.0.1938.62)\r\n Internet Explorer: 11.0.19041.1566\r\n npmPackages:\r\n vitepress: ^1.0.0-rc.9 => 1.0.0-rc.9\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.",[3050],{"name":3027,"color":3028},2868,"`postcssIsolateStyles` mess up original styles","2023-09-05T00:04:08Z","https://github.com/vuejs/vitepress/issues/2868",0.73441344,{"description":3057,"labels":3058,"number":3059,"owner":3030,"repository":3031,"state":3042,"title":3060,"updated_at":3061,"url":3062,"score":3063},"### Is your feature request related to a problem? Please describe.\r\n\r\nIt would be nice if sites based on VitePress could support social link preview images with the corresponding meta tags (Twitter and OpenGraph).\r\n\r\nI personally try to build my Blog based on VitePress, and for a Blog I think social link preview images are important.\r\n\r\nCurrently VitePress does not support tilte and descripption for social link previews (Twitter and OpenGraph) but not Images.\r\n\r\nThis can for instance be observed with the following site:\r\nhttps://www.opengraph.xyz/url/https%3A%2F%2Fblog.vuejs.org%2Fposts%2Fvue-3-as-the-new-default.html/\r\n\r\n\r\n### Describe the solution you'd like\r\n\r\nI suggest that a default social image can be specified in `.vitepress/config.ts`. This image is then referenced in meta tags for Twitter and OpenGraph like this:\r\n```\r\n \u003Cmeta name=\"twitter:image\" content=\"/images/example.png\">\r\n \u003Cmeta property=\"og:image\" content=\"/images/example.png\">\r\n```\r\n\r\nThe above image can be overridden in each Markdown page by specifying a specific social image in frontmatter like this:\r\n```\r\n---\r\nimage: ./images/vue.png\r\n---\r\n```\r\n\r\nI am using a version of VitePress that contains PR #498 here:\r\nhttps://blog.jonasbandi.net/posts/20211231-a-new-beginning.html\r\n(Source: https://github.com/jbandi/blog.jonasbandi.net)\r\n\r\nAs you can see here the social link image preview is working:\r\nhttps://www.opengraph.xyz/url/https%3A%2F%2Fblog.jonasbandi.net%2Fposts%2F20211231-a-new-beginning.html/\r\n\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/coc)\r\n- [X] Read the [docs](https://vitepress.vuejs.org/).\r\n- [X] Read the [Contributing Guidelines](https://github.com/vuejs/vitepress/blob/master/.github/contributing.md).\r\n- [X] Check that there isn't already an issue that reports the same bug to avoid creating a duplicate.",[],504,"Feature: social images (twitter/og)","2023-01-21T16:04:17Z","https://github.com/vuejs/vitepress/issues/504",0.7357042,{"description":3065,"labels":3066,"number":3068,"owner":3030,"repository":3031,"state":3042,"title":3069,"updated_at":3070,"url":3071,"score":3072},"### Describe the bug\n\n标题: 开发服务器模式下 Chrome 浏览器视口宽度计算错误\r\n\r\n## 问题描述\r\n在使用 VitePress 开发模式(`vitepress dev`)时,浏览器视口宽度被错误计算。相同的项目在预览/服务模式(`vitepress serve`)下却能正常工作。\r\n\r\n\r\n\r\n\r\n\r\n\n\n### Reproduction\n\n### 复现步骤\r\n1. 创建一个新的 VitePress 项目\r\n2. 运行 `vitepress dev`\r\n3. 打开 Chrome 开发者工具\r\n4. 在控制台检查 `window.innerWidth`\r\n5. 在不同的浏览器标签页之间切换\n\n### Expected behavior\n\n### 预期行为\r\n- 视口宽度应该与实际浏览器窗口宽度相匹配\r\n- `window.innerWidth` 应返回正确的浏览器窗口宽度(例如:在 1440px 宽的窗口中应返回 1440px)\r\n### 实际行为\r\n- 视口宽度明显小于实际窗口(约为 341px)\r\n- 即使在 Chrome 窗口大小为 1024x768 或更大时也会出现此问题\r\n- 同样的页面在不同的浏览器标签页中显示正确的宽度(1440px)\r\n- 使用 `vitepress serve` 运行时不存在此问题\r\n\n\n### System Info\n\n```Text\n### 环境信息\r\n- VitePress 版本:[1.1.4]\r\n- Chrome 版本:[131.0.6778.86(正式版本)]\r\n- 操作系统:[win10]\n```\n\n\n### Additional context\n\n### 补充说明\r\n- 此问题仅在开发模式下出现\r\n- 此问题影响整个布局,因为所有元素都使用了错误的宽度进行渲染\r\n- 在浏览器标签页之间切换时,相同窗口大小会显示不同的 `window.innerWidth` 值\r\n- 使用Edge、fifefox测试的时候是正常的,下面有对比图\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.",[3067],{"name":3027,"color":3028},4406,"开发服务器模式下 Chrome 浏览器视口宽度计算错误","2025-01-02T04:43:06Z","https://github.com/vuejs/vitepress/issues/4406",0.7377617,{"description":3074,"labels":3075,"number":3077,"owner":3030,"repository":3031,"state":3042,"title":3078,"updated_at":3079,"url":3080,"score":3081},"### Describe the bug\r\n\r\nFor example the page https://blog.jaggerwang.net/basicai-annotation-specification/ cannot access directly, but it's ok when add `index.html` suffix, and other pages did not have this problem, such as https://blog.jaggerwang.net/basicai-technical-architecture/ . So it seems related to the content of page?\r\n\r\n\u003Cimg width=\"1512\" alt=\"image\" src=\"https://github.com/vuejs/vitepress/assets/1255011/3a69f282-d002-4194-b7ca-3b3075616883\">\r\n\r\nIt's ok when running in local dev and preview mode, and there is no error showing in the browser console or terminal console.\r\n\r\n\u003Cimg width=\"1512\" alt=\"image\" src=\"https://github.com/vuejs/vitepress/assets/1255011/82b87b50-f21a-430e-bb4e-893eb3bf9c52\">\r\n\r\n### Reproduction\r\n\r\nProject structure:\r\n\r\n\u003Cimg width=\"1624\" alt=\"image\" src=\"https://github.com/vuejs/vitepress/assets/1255011/d3f2d9e0-5dc8-4344-9674-61433c5a8322\">\r\n\r\nAliyun OSS config:\r\n\r\n\u003Cimg width=\"1306\" alt=\"image\" src=\"https://github.com/vuejs/vitepress/assets/1255011/d30acd18-d20c-44f2-a872-61bd981d0bcb\">\r\n\r\nBuid with GitHub actions, but the html is same with local build.\r\n\r\n\u003Cimg width=\"1624\" alt=\"image\" src=\"https://github.com/vuejs/vitepress/assets/1255011/f57bef3c-2d76-47c4-b18a-4b4a7b696771\">\r\n\r\n### Expected behavior\r\n\r\nNo error.\r\n\r\n### System Info\r\n\r\n```Text\r\nAliyun OSS\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.",[3076],{"name":3027,"color":3028},3322,"Refresh some pages with error \"Hydration completed but contains mismatches.\" when deployed on Aliyun OSS.","2023-12-21T00:04:35Z","https://github.com/vuejs/vitepress/issues/3322",0.73799485,{"description":3083,"labels":3084,"number":3085,"owner":3030,"repository":3031,"state":3042,"title":3086,"updated_at":3087,"url":3088,"score":3089},"### Is your feature request related to a problem? Please describe.\n\nWe're using Custom Elements to encapsulate styles from our design system, so it'd be great to be able to tell Vitepress to ignore those tags.\r\n\r\nSuper lightweight example:\r\n\r\n```js\r\nclass ButtonExample extends HTMLElement {\r\n connectedCallback() {\r\n const designSystemCSS = '\u003Clink rel=\"stylesheet\" type=\"text/css\" href=\"designSystemURL\" />'\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.73821837,{"description":3091,"labels":3092,"number":3096,"owner":3030,"repository":3031,"state":3042,"title":3097,"updated_at":3098,"url":3099,"score":3100},"### 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.",[3093],{"name":3094,"color":3095},"stale","ededed",826,"support adding attributes to code blocks","2023-08-11T00:04:28Z","https://github.com/vuejs/vitepress/issues/826",0.7387174,{"description":3102,"labels":3103,"number":3104,"owner":3030,"repository":3031,"state":3042,"title":3105,"updated_at":3106,"url":3107,"score":3108},"### Describe the bug\n\n在我编写一个.md文件时我是这么写的:\r\n\r\n```\r\n\u003Cimg alt=\"GitHub License\" src=\"https://img.shields.io/github/license/NoNameGMM/SignInForMiraiMC?style=flat&label=License\r\n\"/>\r\n\u003Cimg alt=\"Minecraft Version\" src=\"https://img.shields.io/badge/Minecraft-1.8--1.20-blue?style=flat&color=green\"/>\r\n\u003Cimg alt=\"GitHub Release\" src=\"https://img.shields.io/github/v/release/NoNameGMM/SignInForMiraiMC?style=flat&label=Release\"/>\r\n```\r\n\r\n正常来说应该是这样:\r\n\u003Cimg width=\"249\" alt=\"photo1\" src=\"https://github.com/vuejs/vitepress/assets/109721871/d5c41be5-f3df-43f7-bd88-a2f12a11490f\">\r\n\r\n可是vitepress的效果是:\r\n\u003Cimg width=\"107\" alt=\"屏幕截图 2024-03-03 200157\" src=\"https://github.com/vuejs/vitepress/assets/109721871/a5b20517-2e3f-4fb0-9390-1f06cdbbebd6\">\r\n\r\n\r\n\n\n### Reproduction\n\n同上\n\n### Expected behavior\n\n我想要实现正常markdown的效果\n\n### System Info\n\n```Text\nSystem:\r\n OS: Windows 11 10.0.22631\r\n CPU: (16) x64 AMD Ryzen 7 5800H with Radeon Graphics\r\n Memory: 1.68 GB / 13.86 GB\r\n Binaries:\r\n Node: 20.10.0 - C:\\Program Files\\nodejs\\node.EXE\r\n Yarn: 1.22.21 - ~\\AppData\\Roaming\\npm\\yarn.CMD\r\n npm: 10.2.3 - C:\\Program Files\\nodejs\\npm.CMD\r\n pnpm: 8.15.4 - ~\\AppData\\Roaming\\npm\\pnpm.CMD\r\n Browsers:\r\n Edge: Chromium (122.0.2365.59)\r\n Internet Explorer: 11.0.22621.1\r\n npmPackages:\r\n vitepress: ^1.0.0-rc.44 => 1.0.0-rc.44\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.",[],3631,"使用shields.io徽标时图片自动换行","2024-03-11T00:04:39Z","https://github.com/vuejs/vitepress/issues/3631",0.73905075,{"description":3110,"labels":3111,"number":3118,"owner":3030,"repository":3031,"state":3042,"title":3119,"updated_at":3120,"url":3121,"score":3122},"### Describe the bug\n\nThe anchor doesn't work if there's an “й” in it.\n\n### Reproduction\n\nPlease test. \"Движок авто\" works fine, but \"Настройки сессии\" will not scroll down\n\n\n\n\n```\n[Движок авто](#движок-авто)\n[Настройки сессии](#настройки-сессии)\n\u003Cbr>\n\u003Cbr>\n\u003Cbr>\n\u003Cbr> 300 times...\n\n## Настройки сессии\n## Движок авто\n```\n\n### Expected behavior\n\nworks as other words\n\n### System Info\n\n```Text\nviteress 1.6.3\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.",[3112,3115],{"name":3113,"color":3114},"has-workaround","1B4515",{"name":3116,"color":3117},"needs more discussion","C2E0C6",4605,"The anchor doesn't work if there's an “й” in it.","2025-03-18T04:01:15Z","https://github.com/vuejs/vitepress/issues/4605",0.7408248,["Reactive",3124],{},["Set"],["ShallowReactive",3127],{"$fTRc1wZytZ_XrK4EfJfei_Sz-An4H4Yy6syhVxH_PVJc":-1,"$fLoGtaudVM7X8whP7SmsiKmZoUzdE51hU1Zi8KGzBsCQ":-1},"/vuejs/vitepress/4732"]