-
-
Notifications
You must be signed in to change notification settings - Fork 6.5k
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
Incorrect testRegex link in document #9169
Comments
The hash should be |
Yeah, it was easy to figure it out, will fix it this evening if no one want to take this tiny opportunity :D |
@thymikee BTW (I know it's out of scope), are |
We plan to unify it: #7185 |
It turns out a bigger issue: all options with type |
It's something bigger than expected! The table of contents section is generated by docusaurus by For some reasons, the generator is having troubles while parsing the titles. Let me explain: The heading Text: But it should be Text: This means that we're having problems on I've tried to escape them, getting the following result: Heading: As you can see, the text is correct but the url is still wrong. Of course, all the other links that are following the same logic aren't working as expected. Any ideas? |
@MrMavin You're right, I just looked into the code and figured it out too :) |
@MrMavin One more case |
Found out the problem. By taking a look at the code responsible to generate the table of contents, which is this one, they're doing a Please have a look at For me, there are two solutions to this issue. The first one is about sending a PR to the Docusaurus repository. I'm thinking about it because I don't know if it's a good idea. Mainly because they're working on version 2, which doesn't seem to implement such feature the same way, and because it's something that if changed it could break things in other projects. The second one is about refactoring What do you think? |
@MrMavin Since Docusaurus only mentions about code block it's not likely they will fix this issue. I think HTML entities is way to go. |
@MrMavin please correct me if I am wrong but don't we need to use |
This issue has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs. |
🐛 Bug Report
testRegex link doesn't work in Configuring Jest document.
To Reproduce
Click testRegex option, both in main content and in sidebar.
Expected behavior
Jump to testRegex section.
The text was updated successfully, but these errors were encountered: