-
-
Notifications
You must be signed in to change notification settings - Fork 10k
Relative markdown links between blog and docs does not work #9117
Copy link
Copy link
Open
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 executiondifficulty: advancedIssues that are complex, e.g. large scoping for long-term maintainability.Issues that are complex, e.g. large scoping for long-term maintainability.domain: markdownRelated to Markdown parsing or syntaxRelated to Markdown parsing or syntax
Description
Activity
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 executiondifficulty: advancedIssues that are complex, e.g. large scoping for long-term maintainability.Issues that are complex, e.g. large scoping for long-term maintainability.domain: markdownRelated to Markdown parsing or syntaxRelated to Markdown parsing or syntax
Have you read the Contributing Guidelines on issues?
Prerequisites
npm run clearoryarn clearcommand.rm -rf node_modules yarn.lock package-lock.jsonand re-installing packages.Description
Hi Docusaurus team,
Love this library - thank you for your awesome work!
I'm looking to link a blog post to a docs page using a relative markdown link, but I receive the following error when I specify
[link to doc](../../docs/doc-page.md)in the blog post:[WARNING] Blog markdown link couldn't be resolved: (../../docs/doc-page.md) in "/home/projects/github-dc5ygn/blog/blog-post.mdOn the other hand, using link without the
.md([link to doc](../../docs/doc-page)) extension works fine.Is there a way I can prevent the broken link while preserving the
.mdextension? I'm using an Obsidian plugin to convert wikilinks to internal links and need to keep the.mdextension for it to work properly.Reproducible demo
https://stackblitz.com/edit/facebook-docusaurus-mx3fkh?file=blog%2Fblog-post.md
Steps to reproduce
[WARNING] Docs markdown link couldn't be resolved: (../../docs/doc-page.md) in "/home/projects/facebook-docusaurus-mx3fkh/docs/doc-page.md" for version current[link to doc](../../docs/doc-page)Expected behavior
The link
[link to doc](../../docs/doc-page)should work regardless of whether or not.mdis specified.Actual behavior
The link
[link to doc](../../docs/doc-page)only works when.mdis omitted.Your environment
Self-service