Broken link transformation #10072
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
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
.mdx
extension is not removed from the link if the link text is split into two lines.Reproducible demo
https://codesandbox.io/p/devbox/determined-northcutt-fdkm45?file=%2Fdocs%2Findex.mdx%3A5%2C1
Steps to reproduce
Put this code in the mdx file in the
/docs/
folder (assuming thatinstallation.mdx file
exists in the same folder):Expected behavior
I expect that both links will be transformed to
<a href="/docs/installation">Some link</a>
.Actual behavior
In practice, only the second link is transformed correctly. The first link is left as
<a href="/installation.mdx">Some link</a>
.See the attached codesandbox demo.
Your environment
Self-service
The text was updated successfully, but these errors were encountered: