ArcGIS\r\n details: Use the ArcGIS Maps SDK for JavaScript to build compelling web apps that unlock your data’s potential with interactive user experiences and stunning 2D and 3D visualizations.\r\n link: https://developers.arcgis.com/javascript/latest/\r\n target: \"_blank\"\r\n```\r\nIt runs well in dev, but when I deployed on gh-pages in a custom repository, the site comes like \\\u003Cusername\\>.github.io/\\\u003Crepo\\>/xxx.So I set base option in ./docs/.vitepress/config.mts, the logo.png runs well under this option.but in `index.md>home layout>features`,it didn't work.\r\nif add a \\\u003Crepo\\> before src link, worked but I should change it every time when add or remove a feature:\r\n```md\r\nfeatures:\r\n - title: \u003Cimg src= \"/gest_webgis/imgs/ArcGIS.png\" alt=\"ArcGIS\" class=\"inline-block\"/>ArcGIS\r\n details: Use the ArcGIS Maps SDK for JavaScript to build compelling web apps that unlock your data’s potential with interactive user experiences and stunning 2D and 3D visualizations.\r\n link: https://developers.arcgis.com/javascript/latest/\r\n target: \"_blank\"\r\n```\r\nHow can I use a `withBase` helper in vitepress within formatter in md files?\r\n\r\n### Reproduction\r\n\r\nwrite an img tag in `home layout > features>title`,set base option in ./docs/.vitepress/index.{js,mts}\r\n\r\n\r\n### Expected behavior\r\n\r\nthe /imgs/xxx.png should automatically change into ${baseUrl}/imgs/xxx.png at runtime or use withBase helper in home features\r\n\r\n### System Info\r\n\r\n```Text\r\nwin11, gitpub pages\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] 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.",[2884],{"name":2885,"color":2886},"bug: pending triage","e99695",3139,"closed","How to use a `withBase` helper in vitepress within formatter in md files?","2023-11-02T00:04:19Z","https://github.com/vuejs/vitepress/issues/3139",0.6097253,{"description":2894,"labels":2895,"number":2896,"owner":2874,"repository":2875,"state":2888,"title":2897,"updated_at":2898,"url":2899,"score":2900},"### Is your feature request related to a problem? Please describe.\n\nLet's say we got a folder structure like this:\r\n\r\n\r\n└─ foo\r\n ├─ 1.0.0.md\r\n ├─ 2.0.0.md\r\n └─ 3.0.0.md\r\n\r\nRight now we would have routes like:\r\n `/foo/1.0.0.html`\r\n `/foo/2.0.0.html`\r\n `/foo/3.0.0.html`\r\n\r\nI'd like to also have a route or alias like the following: `/foo/latest` which will point to the latest version (this can all be determined on build time by looking at the file, I already have a function that gives me the latest \"route\", in this case `/foo/3.0.0.html`.\r\n\r\nHow can I make this `/foo/latest` route exist and be an alias to the one I wanted?\n\n### Describe the solution you'd like\n\nAllow us to define route aliases or redirects\n\n### Describe alternatives you've considered\n\nI've tried with rewrites but that allowed me to make the latest version redirected to /latest instead. I want the reverse.\n\n### Additional context\n\nIf this is not something you think vitepress should have because it's not SSG friendly (there is no latest.html file) then I understand.\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.",[],2922,"Route Alias or Redirect","2023-09-16T00:04:02Z","https://github.com/vuejs/vitepress/issues/2922",0.6508179,{"description":2902,"labels":2903,"number":2907,"owner":2874,"repository":2875,"state":2888,"title":2908,"updated_at":2909,"url":2910,"score":2911},"### Discussed in https://github.com/vuejs/vitepress/discussions/2062\r\n\r\n\u003Cdiv type='discussions-op-text'>\r\n\r\n\u003Csup>Originally posted by **PrajjwalArora08** March 9, 2023\u003C/sup>\r\nIs there any specific configuration that required to use badge?\r\nI just created a fresh project and was trying badge component but it showing error in console.\r\n\r\n```\r\nruntime-core.esm-bundler.js:40 [Vue warn]: Failed to resolve component: Badge\r\nIf this is a native custom element, make sure to exclude it from component resolution via compilerOptions.isCustomElement.\r\nat \u003CTextBadge.md>\r\nat \u003CVitePressContent class=\"vp-doc _text-badge\" >\r\nat \u003CVPDoc key=3 >\r\nat \u003CVPContent>\r\nat \u003CLayout> \r\nat \u003CLayout> \r\nat \u003CVitePressApp>\r\n```",[2904],{"name":2905,"color":2906},"need more info","bdbefc",2493,"Not able to use Badge Component","2023-06-20T00:03:52Z","https://github.com/vuejs/vitepress/issues/2493",0.6711929,{"description":2913,"labels":2914,"number":2916,"owner":2874,"repository":2875,"state":2888,"title":2917,"updated_at":2918,"url":2919,"score":2920},"### Is your feature request related to a problem? Please describe.\r\n\r\nNow that the pathname protocol has been removed (5836fac) I believe there is no way to configure a sidebar link which points to an external resource.\r\n\r\n### Describe the solution you'd like\r\n\r\nI assume we need the same customisation as is available for nav items:\r\n\r\nhttps://vitepress.dev/reference/default-theme-nav#customize-link-s-target-and-rel-attributes\r\n\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/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.",[2915],{"name":2868,"color":2869},2851,"Allow sidebar links to customise target & rel attributes","2023-09-02T00:04:12Z","https://github.com/vuejs/vitepress/issues/2851",0.67230517,{"description":2922,"labels":2923,"number":2925,"owner":2874,"repository":2875,"state":2888,"title":2926,"updated_at":2927,"url":2928,"score":2929},"### Describe the bug\r\n\r\nHey, not sure if it's a bug or not, but the anchor in markdown seems not working if the case does not match.\r\n\r\nIn my PhpStorm and Typora, it works. In `GitHub README.md` preview, it works. But in VitePress it doesn't work.\r\n\r\n### Reproduction\r\n\r\nHosted: (`.md` files are the same)\r\n\r\nVitePress: https://docs.aelita.me/docs/vite-plugin-inject-html.html\r\n~~GitHub: https://github.com/xsjcTony/vite-plugin-inject-html/tree/main/packages/vite-plugin-inject-html~~ (Removed anchors, so longer valid. But it's working on GitHub sites anyway)\r\n\r\nPlease try to click on either `externalStyleSheets` or `otherTags`, since they are in camelCase, it's not working in VitePress, no idea if it's a bug or expected behaviour. (Click on links in main content at the top, not the side bar)\r\n\r\n### Expected behavior\r\n\r\nIt should jump to anchor, ignoring the case.\r\n\r\n### System Info\r\n\r\n```shell\r\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: 42.08 GB / 63.84 GB\r\n Binaries:\r\n Node: 18.14.0 - C:\\NodeJS\\node.EXE\r\n Yarn: 1.22.19 - C:\\NodeJS\\yarn.CMD\r\n npm: 9.4.2 - C:\\NodeJS\\npm.CMD\r\n Browsers:\r\n Edge: Spartan (44.19041.1266.0), Chromium (110.0.1587.41)\r\n Internet Explorer: 11.0.19041.1566\r\n npmPackages:\r\n vitepress: 1.0.0-alpha.45 => 1.0.0-alpha.45\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.",[2924],{"name":2885,"color":2886},1927,"Markdown's anchor is case sensitive","2023-03-23T00:04:25Z","https://github.com/vuejs/vitepress/issues/1927",0.67575544,{"description":2931,"labels":2932,"number":2937,"owner":2874,"repository":2875,"state":2888,"title":2938,"updated_at":2939,"url":2940,"score":2941},"### Describe the bug\n\nWhen sidebar is not present, the page is not scrolled and outline is scrolled down, it overflows the navbar.\r\n\r\n \r\n\r\n\n\n### Reproduction\n\nhttps://stackblitz.com/edit/vite-v81ufa\r\n\r\n1. Make sure width is high enough so that outline is shown\r\n2. Without scrolling the main page content hover over the outline and scroll down\r\n3. Observe that the outline overflows the navbar\n\n### Expected behavior\n\nOutline is clipped when over navbar in the same way when sidebar is present.\n\n### System Info\n\n```sh\nSystem:\r\n OS: Windows 10 10.0.19044\r\n CPU: (16) x64 Intel(R) Core(TM) i7-6900K CPU @ 3.20GHz\r\n Memory: 45.66 GB / 63.92 GB\r\n Binaries:\r\n Node: 18.2.0 - C:\\Program Files\\nodejs\\node.EXE\r\n Yarn: 1.22.5 - C:\\Program Files (x86)\\Yarn\\bin\\yarn.CMD\r\n npm: 9.6.6 - C:\\Program Files\\nodejs\\npm.CMD\r\n Browsers:\r\n Chrome: 113.0.5672.127\r\n Edge: Spartan (44.19041.1266.0), Chromium (113.0.1774.50)\r\n npmPackages:\r\n vitepress: ^1.0.0-beta.1 => 1.0.0-beta.1\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.",[2933,2934],{"name":2868,"color":2869},{"name":2935,"color":2936},"contribution welcome","11E4B8",2442,"Outline overflows navbar when sidebar not present","2023-08-16T00:04:22Z","https://github.com/vuejs/vitepress/issues/2442",0.6782529,{"description":2943,"labels":2944,"number":2948,"owner":2874,"repository":2875,"state":2888,"title":2949,"updated_at":2950,"url":2951,"score":2952},"### Describe the bug\n\n单击 AntDesignVue Pagination 组件某页进行切换时,会导致当前页面会滚动到 Top。\n\n### Reproduction\n\n后排查发现 \\\u003Ca rel=\"nofollow\"> 这种也会起到锚链接的作用。但在其他非 vitepress 的 SPA 页面中使用,却不会有这个影响。我不太理解。\n\n### Expected behavior\n\n消除 \\\u003Ca rel=\"nofollow\"> 本不该有的 锚链接影响。\n\n### System Info\n\n```Text\nSystem:\r\n OS: macOS 14.5\r\n CPU: (16) x64 Intel(R) Core(TM) i9-9880H CPU @ 2.30GHz\r\n Memory: 2.63 GB / 32.00 GB\r\n Shell: 5.9 - /bin/zsh\r\n Binaries:\r\n Node: 20.10.0 - ~/.nvm/versions/node/v20.10.0/bin/node\r\n Yarn: 1.22.22 - /usr/local/bin/yarn\r\n npm: 10.2.3 - ~/.nvm/versions/node/v20.10.0/bin/npm\r\n pnpm: 9.2.0 - /usr/local/bin/pnpm\r\n bun: 1.1.12 - /usr/local/bin/bun\r\n Browsers:\r\n Chrome: 125.0.6422.142\r\n Safari: 17.5\r\n npmPackages:\r\n vitepress: ^1.2.3 => 1.2.3\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.",[2945],{"name":2946,"color":2947},"client","1AA9E5",3950,"使用 AntDesignVue Pagination 组件中,发现单击某个页数切换,会导致页面会回滚到 Top","2024-06-17T04:43:00Z","https://github.com/vuejs/vitepress/issues/3950",0.67892545,{"description":2954,"labels":2955,"number":2956,"owner":2874,"repository":2875,"state":2888,"title":2957,"updated_at":2958,"url":2959,"score":2960},"### Is your feature request related to a problem? Please describe.\n\nI can't find any solution to lazy load images. If I use markdown, vitepress will render the code to:\r\n``` HTML\r\n\u003Cimg src=\"\" alt=\"\">\r\n```\r\nI think it's better to add loading=\"lazy\" to \u003Cimg> tag. This solution doesn't need any plugin.\n\n### Describe the solution you'd like\n\nAlready said above.\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.",[],3316,"Add loading=\"lazy\" to \u003Cimg> tag to support native lazy load feature of browser.","2024-01-07T00:04:59Z","https://github.com/vuejs/vitepress/issues/3316",0.69041145,{"description":2962,"labels":2963,"number":2965,"owner":2874,"repository":2875,"state":2888,"title":2966,"updated_at":2967,"url":2968,"score":2969},"### Describe the bug\n\nWriting\r\n\r\n````\r\n```\r\n A-->B;\r\n A-->C;\r\n B-->D;\r\n C-->D;\r\n```\r\n````\r\n\r\nShould keep the indentation but the content is trimmed so it render like:\r\n\r\n\r\n````\r\n```\r\nA-->B;\r\n A-->C;\r\n B-->D;\r\n C-->D;\r\n```\r\n````\r\n\r\n\r\n\n\n### Reproduction\n\nhttps://stackblitz.com/edit/vite-g3gqwo?file=docs%2Fexample.md\n\n### Expected behavior\n\nDoesn't trim the content and render indentation on the first line correctly.\r\n\r\n\r\n\n\n### System Info\n\n```Text\nSystem:\r\n OS: Linux 6.4 Fedora Linux 38 (Workstation Edition)\r\n CPU: (24) x64 AMD Ryzen 9 3900XT 12-Core Processor\r\n Memory: 27.51 GB / 62.69 GB\r\n Container: Yes\r\n Shell: 5.2.15 - /bin/bash\r\n Binaries:\r\n Node: 20.6.1 - ~/.local/share/pnpm/node\r\n Yarn: 1.22.19 - ~/.nvm/versions/node/v16.18.1/bin/yarn\r\n npm: 9.8.1 - ~/.local/share/pnpm/npm\r\n pnpm: 8.7.6 - ~/.local/share/pnpm/pnpm\r\n Browsers:\r\n Chrome: 117.0.5938.62\r\n npmPackages:\r\n vitepress: ^1.0.0-rc.14 => 1.0.0-rc.14\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.",[2964],{"name":2885,"color":2886},2988,"Code block content is trimmed","2023-09-27T00:04:19Z","https://github.com/vuejs/vitepress/issues/2988",0.6927299,["Reactive",2971],{},["Set"],["ShallowReactive",2974],{"$fTRc1wZytZ_XrK4EfJfei_Sz-An4H4Yy6syhVxH_PVJc":-1,"$f_xpuVeHu9MwI87q1g6Ixj4eR-OHaBe_z31dLcaS3RcA":-1},"/vuejs/vitepress/3351"]