Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Anchors starting with a number cause incompability with linting tools #3119

Open
RaimondB opened this issue Jan 20, 2023 · 0 comments
Open

Comments

@RaimondB
Copy link

  • [X ] I confirm that this is an issue rather than a question.

Bug report

An earlier issue #121 that was fixed causes incompatibility with linting tools.
Vuepress will prefix anchorlinks that start with a digit with an underscore.
Widely used tools such as markdownlint and markdownlinkcheck don't do this an therefore break when headings are used that start with a digit and anchors or TOCs are created.

Steps to reproduce

  1. Create a vuepress site
  2. Add markdownlint or markdownlinkcheck in your CI/CD pipeline
  3. Create a heading that starts with a digit
  4. Create an internal link to the heading
  5. Run the CI/CD pipeline

What is expected?

When CI/CD passes, it should also work in VuePress

What is actually happening?

When CI/CD passes, the link will not work in vuepress. When changed to work in vuepress, the CI/CD will break.

Other relevant information

  • Output of npx vuepress info in my VuePress project:
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant