vuepress
                                
                                 vuepress copied to clipboard
                                
                                    vuepress copied to clipboard
                            
                            
                            
                        Anchors starting with a number cause incompability with linting tools
- [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
- Create a vuepress site
- Add markdownlint or markdownlinkcheck in your CI/CD pipeline
- Create a heading that starts with a digit
- Create an internal link to the heading
- 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 infoin my VuePress project: