-
-
Notifications
You must be signed in to change notification settings - Fork 8.8k
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
Unresolved link inside HTML comment #5659
Labels
bug
An error in the Docusaurus core causing instability or issues with its execution
closed: duplicate
This issue or pull request already exists in another issue or pull request
Comments
6 tasks
Thanks Yes, it seems our remark broken link checking logic does not account for HTML comments. Problem in packages/docusaurus-utils/src/markdownLinks.ts |
Hello everybody! I'm new to the project. May I contribute by submitting a PR ? |
This was referenced Dec 16, 2021
This was referenced Jan 4, 2022
15 tasks
7 tasks
Duplicate of #9048 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Labels
bug
An error in the Docusaurus core causing instability or issues with its execution
closed: duplicate
This issue or pull request already exists in another issue or pull request
🐛 Bug Report
Prerequisites
npm run clear
oryarn clear
command.rm -rf node_modules yarn.lock package-lock.json
and re-installing packages.Description
I get an error when I build the website:
mypage.md looks like this:
Have you read the Contributing Guidelines on issues?
Yes.
Steps to reproduce
Add to any markdown page:
<!-- [some text](nonexistentpage.md) -->
Expected behavior
Dummy links in HTML comments should not produce any warning / error during build.
Actual behavior
Docusaurus thinks that markdown link cannot be resolved even though it's inside the HTML comment. Error is printed and build fails.
Your environment
not relevant
Reproducible demo
https://stackblitz.com/edit/github-qhwl7g?file=docs/intro.md
The text was updated successfully, but these errors were encountered: