Fix documentation regarding anchor links

Working with vitepress v1.3.3, I noticed a link in the format `./#heading` does not work / leads to a docs generation error, whereas `#heading` works for me. Hence this PR.
pull/4193/head
Björn Martin 1 year ago committed by GitHub
parent 32c51e39ae
commit a020fa435b
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

@ -44,7 +44,7 @@ And providing you are in `foo/one.md`:
```md ```md
[Home](/) <!-- sends the user to the root index.md --> [Home](/) <!-- sends the user to the root index.md -->
[foo](/foo/) <!-- sends the user to index.html of directory foo --> [foo](/foo/) <!-- sends the user to index.html of directory foo -->
[foo heading](./#heading) <!-- anchors user to a heading in the foo index file --> [foo heading](#heading) <!-- anchors user to a heading in the foo index file -->
[bar - three](../bar/three) <!-- you can omit extension --> [bar - three](../bar/three) <!-- you can omit extension -->
[bar - three](../bar/three.md) <!-- you can append .md --> [bar - three](../bar/three.md) <!-- you can append .md -->
[bar - four](../bar/four.html) <!-- or you can append .html --> [bar - four](../bar/four.html) <!-- or you can append .html -->

Loading…
Cancel
Save