Home > Enterprise >  Docusaurus Cannot link .md files to one another without removing file extension
Docusaurus Cannot link .md files to one another without removing file extension

Time:08-24

I am trying to link to another markdown file in Docusaurus My folder structure is

Docs/Folder/File1.md

Docs/Folder/File2.md

When i link to File2.md, the standard markdown format will be [Name](./File2.md) But Docusaurus will not link it unless i remove the .md file extension.

Video File is https://youtu.be/6sRDPz9tFLE

Any workaround ?

I simply cannot omit the .md in the end because i want interoperability and be able to use it with my local Markdown editor as well.

CodePudding user response:

From the docusaurus Markdown links, try without ./

 [Name](File2.md)

Both File2 and File2.md should be recognized as legitimated links by Docusaurus.


The OP Rishi actually confirms in the comments this is working:

Deleted everything, did a clean install of the Docusaurus and now it seems to be functioning as expected.

  • Related