\\\u003C!-- [!code --] -->\n\\\u003CReference Include=\"Assembly-CSharp\" HintPath=\"...\\Assembly-CSharp.dll\" Publicize=\"true\" /> \\\u003C!-- [!code ++] -->\n\\```\n\n### Expected behavior\n\nThe colored remove diff should appear.\n\n### System Info\n\n```Text\nSystem:\n OS: Linux 6.13 openSUSE Tumbleweed 20250128\n CPU: (8) x64 AMD Ryzen 7 9800X3D 8-Core Processor\n Memory: 22.05 GB / 30.47 GB\n Container: Yes\n Shell: 5.2.37 - /bin/bash\n Binaries:\n Node: 22.13.1 - /usr/bin/node\n npm: 10.9.2 - /usr/bin/npm\n pnpm: 10.0.0 - /usr/bin/pnpm\n npmPackages:\n vitepress: ^1.6.3 => 1.6.3\n```\n\n### Additional context\n\nThe main way to support this that I can think of is to add an acceptable syntax of `[!code \\-\\-]`, `[!code -\\-]`, or some other syntax for diff coloring.\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.",[2901],{"name":2902,"color":2903},"upstream","BF29ED",4555,"closed","XML Codeblock Colored Diff does not parse.","2025-02-20T04:43:04Z","https://github.com/vuejs/vitepress/issues/4555",0.71036017,{"description":2911,"labels":2912,"number":2913,"owner":2869,"repository":2870,"state":2905,"title":2914,"updated_at":2915,"url":2916,"score":2917},"### Is your feature request related to a problem? Please describe.\n\n\r\n\n\n### Describe the solution you'd like\n\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.",[],3942,"Whether to support customizing the copy code text in the code box","2024-06-13T04:41:56Z","https://github.com/vuejs/vitepress/issues/3942",0.7303693,{"description":2919,"labels":2920,"number":2924,"owner":2869,"repository":2870,"state":2905,"title":2925,"updated_at":2926,"url":2927,"score":2928},"### Describe the bug\n\nVitePress' Local Search has [a built-in check](https://github.com/vuejs/vitepress/blob/fcae4d5554df2130b9a7e5ad8e0cc83eccf88bec/src/client/theme-default/components/VPLocalSearchBox.vue#L284) to disable hovering search results using the mouse when the most recent interaction was keyboard navigation.\r\n\r\nHowever, this protection does not go far enough to cover one other common scenario: The mouse cursor is also interacting with results that appear underneath it, if the search is opened with the \u003Ckbd>⌘K\u003C/kbd>/\u003Ckbd>Ctrl + K\u003C/kbd> keyboard shortcut.\r\n\r\nI think this problem is a lot easier to grasp with this short video, straight from a freshly initialized VitePress project with just the search added:\r\n\r\nhttps://github.com/user-attachments/assets/05a6496a-bffe-4d24-9daf-34f82fbed18b\r\n\r\nNote how the second result is immediately focused, without the cursor even appearing (since macOS hides it when starting to type.)\r\n\r\nIn contrast, this is how the Algolia search behaves:\r\n\r\nhttps://github.com/user-attachments/assets/ff50900a-2b5d-4117-a407-712bd718b851\r\n\r\nHere, the active result item only changes once the mouse is moved.\n\n### Reproduction\n\n1. Create a quickstart VitePress repo and add search to it. Here is one I made on StackBlitz: https://stackblitz.com/edit/vite-qbirgc?file=docs%2F.vitepress%2Fconfig.ts\r\n2. Open the search with the \u003Ckbd>⌘K\u003C/kbd>/\u003Ckbd>Ctrl + K\u003C/kbd> keyboard shortcut.\r\n3. Type something to search, e.g. \"vite\"\r\n4. Move your mouse cursor over the second item.\r\n5. Close the search box using the \u003Ckbd>Esc\u003C/kbd> key.\r\n6. Re-open search using the shortcut. The second item will be focused immediately.\n\n### Expected behavior\n\nExpectation in keyboard-only navigation of a classic combobox would be to have initial focus in (or near to) the input field and move focus from there.\n\n### System Info\n\n```Text\nSystem:\r\n OS: macOS 15.0.1\r\n CPU: (16) x64 Intel(R) Core(TM) i9-9880H CPU @ 2.30GHz\r\n Memory: 826.72 MB / 16.00 GB\r\n Shell: 5.9 - /bin/zsh\r\n Binaries:\r\n Node: 20.9.0 - ~/.nvm/versions/node/v20.9.0/bin/node\r\n Yarn: 1.22.22 - ~/.nvm/versions/node/v20.9.0/bin/yarn\r\n npm: 10.1.0 - ~/.nvm/versions/node/v20.9.0/bin/npm\r\n pnpm: 9.0.6 - ~/.nvm/versions/node/v20.9.0/bin/pnpm\r\n bun: 1.0.29 - ~/.bun/bin/bun\r\n Browsers:\r\n Brave Browser: 129.1.70.117\r\n Chrome: 129.0.6668.101\r\n Chrome Canary: 132.0.6781.0\r\n Edge: 129.0.2792.89\r\n Safari: 18.0.1\r\n npmPackages:\r\n vitepress: ^1.4.1 => 1.4.1\n```\n\n\n### Additional context\n\nI'd be happy to contribute a PR solving this issue.\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.",[2921],{"name":2922,"color":2923},"bug: pending triage","e99695",4297,"Local Search focuses entries by mouse pointer even if mouse never moves","2024-10-25T04:44:09Z","https://github.com/vuejs/vitepress/issues/4297",0.73339826,{"description":2930,"labels":2931,"number":2932,"owner":2869,"repository":2870,"state":2905,"title":2933,"updated_at":2934,"url":2935,"score":2936},"### Describe the bug\n\nThe back and forward buttons do not work when I click on the menu to navigate to a different page.\r\n\r\n\u003Cimg width=\"277\" alt=\"image\" src=\"https://user-images.githubusercontent.com/73412177/178627332-bbed9e1c-a4b6-41c4-9fa0-0d5af671b67d.png\">\r\n\n\n### Reproduction\n\nhttps://vitepress.vuejs.org/guide/getting-started.html\n\n### Expected behavior\n\nThe back and forward buttons work as expected\n\n### System Info\n\n```shell\nSystem:\r\n OS: macOS 12.2.1\r\n CPU: (8) arm64 Apple M1\r\n Memory: 71.08 MB / 8.00 GB\r\n Shell: 5.8 - /bin/zsh\r\n Binaries:\r\n Node: 16.14.0 - /usr/local/bin/node\r\n Yarn: 1.22.4 - /usr/local/bin/yarn\r\n npm: 8.3.1 - /usr/local/bin/npm\r\n Browsers:\r\n Chrome: 103.0.5060.114\r\n Chrome Canary: 105.0.5176.0\r\n Firefox: 101.0.1\r\n Safari: 15.3\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.",[],972,"[Navigate] backward and forward buttons do not work as expected","2023-03-21T00:04:06Z","https://github.com/vuejs/vitepress/issues/972",0.7448802,{"description":2938,"labels":2939,"number":2940,"owner":2869,"repository":2870,"state":2905,"title":2941,"updated_at":2942,"url":2943,"score":2944},"Is your feature request related to a problem? Please describe.\nThe sidebar (left and right) accounts for too much, leaving less space for the text, whether there is a way to adjust\n\n**Describe the solution you'd like**\nWish there was a way to adjust\n\n**Describe alternatives you've considered**\nNo response\n\n**Additional context**\nNo response\n\n**Validations**\n\nFollow our [Code of Conduct](https://vuejs.org/about/coc.html)\n\nRead the [docs](https://vitepress.dev/).\n\nRead the [Contributing Guidelines](https://github.com/vuejs/vitepress/blob/main/.github/contributing.md).\n\nCheck that there isn't already an issue that asks for the same feature to avoid creating a duplicate.",[],4700,"sidebar accounts for tooo much","2025-04-18T05:51:27Z","https://github.com/vuejs/vitepress/issues/4700",0.74676925,{"description":2946,"labels":2947,"number":2948,"owner":2869,"repository":2870,"state":2905,"title":2949,"updated_at":2950,"url":2951,"score":2952},"### Describe the bug\n\n我想要迁移一个 gitbook 项目到 vitepress,但是项目中有大量的部分是在 Markdown 中通过 .png 来获取 .PNG 图片的,例如一张图片名为 `example.PNG`,在 Markdown 中通过以下方式调用:\r\n\r\n```markdown\r\n\r\n```\r\n\r\n此时通过 `vitepress dev` 是可以正常显示的,没有报错。但是在通过 `vitepress build` 进行构建时就会报错:\r\n\r\n```text\r\nx Build failed in 649ms\r\n✖ building client + server bundles...\r\nbuild error:\r\nRollupError: [vite:build-import-analysis] [plugin vite:build-import-analysis] example.PNG: Failed to parse source for import analysis because the content contains invalid JS syntax. You may need to install appropriate plugins to handle the .PNG file format, or if it's an asset, add \"**/*.PNG\" to `assetsInclude` in your configuration.\r\nfile: D:/Workspace/Docs/testBug/example.PNG\r\n at getRollupError (file:///D:/Workspace/Docs/testBug/node_modules/rollup/dist/es/shared/parseAst.js:379:41)\r\n at error (file:///D:/Workspace/Docs/testBug/node_modules/rollup/dist/es/shared/parseAst.js:375:42)\r\n at Object.error (file:///D:/Workspace/Docs/testBug/node_modules/rollup/dist/es/shared/node-entry.js:19409:20)\r\n at Object.error (file:///D:/Workspace/Docs/testBug/node_modules/rollup/dist/es/shared/node-entry.js:18519:42)\r\n at Object.transform (file:///D:/Workspace/Docs/testBug/node_modules/vite/dist/node/chunks/dep-whKeNLxG.js:66741:22)\r\n```\n\n### Reproduction\n\n1. 添加一张 `.png` 格式的图片到项目中,并将其扩展名修改为 `.PNG`\r\n2. 在 Markdown 中通过 `` 的方法插入该图片\r\n3. 通过 `vitepress build` 命令进行构建\n\n### Expected behavior\n\n如果这是一个 BUG,希望能在构建时通过。如果这不是一个 BUG,那么应该在 `vitepress dev` 时输出报错进行提醒。\n\n### System Info\n\n```Text\nSystem:\r\n OS: Windows 11 10.0.26090\r\n CPU: (12) x64 AMD Ryzen 5 3600X 6-Core Processor\r\n Memory: 17.21 GB / 31.95 GB\r\n Binaries:\r\n Node: 18.16.0 - C:\\Program Files\\nodejs\\node.EXE\r\n Yarn: 1.22.19 - ~\\AppData\\Roaming\\npm\\yarn.CMD\r\n npm: 9.5.1 - C:\\Program Files\\nodejs\\npm.CMD\r\n bun: 1.1.0 - ~\\.bun\\bin\\bun.EXE\r\n Browsers:\r\n Edge: Chromium (124.0.2478.19)\r\n Internet Explorer: 11.0.26090.1\r\n npmPackages:\r\n vitepress: ^1.0.2 => 1.0.2\n```\n\n\n### Additional context\n\n\r\n\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.",[],3748,"构建时 .PNG 格式报错,无法构建","2024-04-28T12:25:03Z","https://github.com/vuejs/vitepress/issues/3748",0.7549406,{"description":2954,"labels":2955,"number":2957,"owner":2869,"repository":2870,"state":2905,"title":2958,"updated_at":2959,"url":2960,"score":2961},"### Describe the bug\n\nI noticed it a couple times at my VitePress blog https://moiva.io/blog/ and also at https://vitejs.dev/guide/\r\n\r\nIf a page stays open for some time, then, at a certain moment, navigation stops working.\r\n\r\nHere are a couple screenshots:\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\nPage reload fixes the problem.\r\n\r\nMy guess is that the website has been updated in the meantime, all the assets have been replaced by the new ones and the server doesn't serve the old ones anymore => navigation stops working.\r\n\n\n### Reproduction\n\ndescribed above\n\n### Expected behavior\n\nIf my guess is correct and the problem is caused by the update of the site in the meantime, then my suggestion would be to fallback to full-page load if a script can't be resolved\n\n### System Info\n\n```shell\nSystem:\r\n OS: macOS 11.6\r\n CPU: (8) x64 Intel(R) Core(TM) i5-1038NG7 CPU @ 2.00GHz\r\n Memory: 438.10 MB / 16.00 GB\r\n Shell: 5.8 - /bin/zsh\r\n Binaries:\r\n Node: 16.13.0 - ~/.nvm/versions/node/v16.13.0/bin/node\r\n Yarn: 1.22.15 - ~/.nvm/versions/node/v16.13.0/bin/yarn\r\n npm: 8.1.4 - ~/.nvm/versions/node/v16.13.0/bin/npm\r\n Browsers:\r\n Brave Browser: 95.1.31.88\r\n Chrome: 96.0.4664.55\r\n Firefox: 90.0.2\r\n Safari: 15.1\r\n npmPackages:\r\n vitepress: ^0.20.1 => 0.20.1\n```\n\n\n### Additional context\n\n_No response_\n\n### Validations\n\n- [X] Follow our [Code of Conduct](https://vuejs.org/coc)\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.",[2956],{"name":2922,"color":2923},454,"Navigation stops working after some time","2023-01-21T16:20:21Z","https://github.com/vuejs/vitepress/issues/454",0.7568562,["Reactive",2963],{},["Set"],["ShallowReactive",2966],{"$fTRc1wZytZ_XrK4EfJfei_Sz-An4H4Yy6syhVxH_PVJc":-1,"$fVCCam1qXie8FP-pJ7TFlVQ8xEgoeq-0EJYNj7lKgueM":-1},"/vuejs/vitepress/4180"]