vuepress / core

Vue-Powered Static Site Generator
https://vuepress.vuejs.org
MIT License
2.17k stars 922 forks source link

[Bug report] Anchor links broken since 2.0-rc1 #1498

Closed jonashendrickx closed 4 months ago

jonashendrickx commented 4 months ago

Description

Anchor links were working fine on 2.0-rc0, but I cannot get them to work on any version newer than this.

Reproduction

Use the VuePress starter

Used Package Manager

npm

System Info

Last known working config

System:
    OS: macOS 14.3
    CPU: (12) arm64 Apple M2 Pro
    Memory: 2.61 GB / 32.00 GB
    Shell: 5.9 - /bin/zsh
  Binaries:
    Node: 18.17.0 - ~/.nvm/versions/node/v18.17.0/bin/node
    Yarn: 1.22.19 - ~/.nvm/versions/node/v18.17.0/bin/yarn
    npm: 9.8.1 - ~/.nvm/versions/node/v18.17.0/bin/npm
  Utilities:
    Git: 2.39.3 - /usr/bin/git
  Browsers:
    Chrome: 121.0.6167.160
    Edge: 121.0.2277.112
    Safari: 17.3
  npmPackages:
    @vuepress/bundler-vite:  undefined (2.0.0-rc.0)
    @vuepress/bundler-webpack: Not Found
    @vuepress/cli: ^2.0.0-rc.2 => 2.0.0-rc.2 (2.0.0-rc.0)
    @vuepress/client:  2.0.0-rc.0 (2.0.0-rc.0)
    @vuepress/core:  2.0.0-rc.0 (2.0.0-rc.0)
    @vuepress/markdown:  2.0.0-rc.0 (2.0.0-rc.0)
    @vuepress/plugin-active-header-links:  2.0.0-rc.0 
    @vuepress/plugin-back-to-top:  2.0.0-rc.0 
    @vuepress/plugin-container:  2.0.0-rc.0 
    @vuepress/plugin-docsearch: 2.0.0-rc.0 => 2.0.0-rc.0 
    @vuepress/plugin-external-link-icon:  2.0.0-rc.0 
    @vuepress/plugin-git:  2.0.0-rc.0 
    @vuepress/plugin-google-analytics: Not Found
    @vuepress/plugin-medium-zoom:  2.0.0-rc.0 
    @vuepress/plugin-nprogress:  2.0.0-rc.0 
    @vuepress/plugin-palette:  2.0.0-rc.0 
    @vuepress/plugin-prismjs:  2.0.0-rc.0 
    @vuepress/plugin-pwa: Not Found
    @vuepress/plugin-pwa-popup: Not Found
    @vuepress/plugin-register-components: Not Found
    @vuepress/plugin-search: Not Found
    @vuepress/plugin-shiki: Not Found
    @vuepress/plugin-theme-data:  2.0.0-rc.0 
    @vuepress/plugin-toc: Not Found
    @vuepress/shared:  2.0.0-rc.0 (2.0.0-rc.0)
    @vuepress/theme-default:  2.0.0-rc.0 
    @vuepress/utils:  2.0.0-rc.0 (2.0.0-rc.0)
    vue:  3.4.15 
    vue-loader: Not Found
    vue-router:  4.2.5 
    vuepress: 2.0.0-rc.0 => 2.0.0-rc.0 
    vuepress-vite:  2.0.0-rc.0 
    vuepress-webpack: Not Found
Mister-Hope commented 4 months ago

If https://v2.vuepress.vuejs.org/ is not working and so is https://theme-hope.vuejs.press/, then

Describe what is not working

If both of them are working,

Check your own issue or provide a valid reproduction

github-actions[bot] commented 4 months ago

Hello @jonashendrickx. Please provide a minimal reproduction using a GitHub repository or v2.vuepress.vuejs.org/new. Issues marked with need reproduction will be closed if they have no activity within 7 days.