-
-
Notifications
You must be signed in to change notification settings - Fork 9.6k
Closed as not planned
Closed as not planned
Copy link
Labels
bugAn error in the Docusaurus core causing instability or issues with its executionAn error in the Docusaurus core causing instability or issues with its executiondomain: markdownRelated to Markdown parsing or syntaxRelated to Markdown parsing or syntax
Description
Have you read the Contributing Guidelines on issues?
- I have read the Contributing Guidelines on issues.
Prerequisites
- I'm using the latest version of Docusaurus.
- I have tried the
npm run clearoryarn clearcommand. - I have tried
rm -rf node_modules yarn.lock package-lock.jsonand re-installing packages. - I have tried creating a repro with https://new.docusaurus.io.
- I have read the console error message carefully (if applicable).
Description
There seems to be a bug in resolving broken links when certain symbols are used in conjunction.
example:
[`Type1`](some_doc.md#type1)\<[`Type2`](some_doc.md#type2)\>This example generates a broken link to some_doc.md#type2
Here is a link to a sandbox with the error reproduced. Note the ./docs/index.md file for the broken bits.
Reproducible demo
https://codesandbox.io/p/sandbox/fervent-joana-2wypc8
Steps to reproduce
In a markdown file, add links using the following symbols:
[`Type1`](some_doc.md#type1)\<[`Type2`](some_doc.md#type2)\>Expected behavior
A link is generated that looks like this:
<a href="/docs/some_doc#type1"><code>Type1</code></a><<a href="/docs/some_doc#type2"><code>Type2</code></a>>Actual behavior
A link is generated that looks like this:
<a href="/docs/some_doc#type1"><code>Type1</code></a><<a href="/docs/some_doc.md#type2"><code>Type2</code></a>>Your environment
No response
Self-service
- I'd be willing to fix this bug myself.
carolinepar, MarcusNotheis, mindulle and sangaline
Metadata
Metadata
Assignees
Labels
bugAn error in the Docusaurus core causing instability or issues with its executionAn error in the Docusaurus core causing instability or issues with its executiondomain: markdownRelated to Markdown parsing or syntaxRelated to Markdown parsing or syntax