Closed chromy96 closed 1 year ago
This is currently working as intended because we only process links line-by-line. We can investigate making it multiline but I wonder if it would be as trivial as the other Markdown link bugs. We'll soon use an actual Markdown parser for this.
Closing as duplicate of https://github.com/facebook/docusaurus/issues/9048
This bug is only there because we don't use MDX/Remark/micromark to resolve links using filename extensions.
Have you read the Contributing Guidelines on issues?
Prerequisites
npm run clear
oryarn clear
command.rm -rf node_modules yarn.lock package-lock.json
and re-installing packages.Description
Two URLs containing a file path to the same document will be rendered differently depending on if the link text contains a line break or not.
Properly rendered url (points to
website
/docs/example)Badly rendered url (points to
website
/example.md)Docusaurus version: 3.0.0
Reproducible demo
No response
Steps to reproduce
Expected behavior
Expected a URL to be rendered the same way as without the line break.
Actual behavior
A link points to
website
/example.md instead ofwebsite
/docs/exampleYour environment
Self-service