We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
When an underscore character (_) is included in an anchor link, Docusaurus converts the underscore to a hyphen (e.g. #foo_bar β #foo-bar).
_
#foo_bar
#foo-bar
This behavior is different from GitHub's one, so it's very confusing. π
Yes. π
git clone https://github.com/ybiquitous/docusaurus-sandbox
cd docusaurus-sandbox/website
yarn install
yarn run start
foo_bar
Jump to the #foo_bar section.
Not Jump to the #foo_bar section.
https://github.com/ybiquitous/docusaurus-sandbox
Environment:
10.15.3
1.15.2
1.7.3
The text was updated successfully, but these errors were encountered:
Here is a GitHub's behavior:
I hope Docusaurus would behave as same. π
Sorry, something went wrong.
What a tricky bug !
I made some test of headings https://gist.github.com/endiliey/f5256045e80c1c10436c6bdfce9c5961 Seems that it replaces all special characters except _ to - Docusaurus only replaces all special characters to -
-
Thank you so much for the quick fix! π
endiliey
No branches or pull requests
π Bug Report
When an underscore character (
_
) is included in an anchor link, Docusaurus converts the underscore to a hyphen (e.g.#foo_bar
β#foo-bar
).This behavior is different from GitHub's one, so it's very confusing. π
Have you read the Contributing Guidelines on issues?
Yes. π
To Reproduce
git clone https://github.com/ybiquitous/docusaurus-sandbox
on your terminal.cd docusaurus-sandbox/website
.yarn install
.yarn run start
.foo_bar
link on the page.Expected behavior
Jump to the
#foo_bar
section.Actual Behavior
Not Jump to the
#foo_bar
section.Reproducible Demo
https://github.com/ybiquitous/docusaurus-sandbox
Environment:
10.15.3
1.15.2
1.7.3
The text was updated successfully, but these errors were encountered: