Skip to main content
Version: 2.0.0-beta.17 🚧

Docs Markdown Features

Docs can use any Markdown feature and have a few additional docs-specific Markdown features.

Markdown front matter

Markdown docs have their own Markdown front matter API.

Referencing other documents

If you want to reference another document file, you could use the relative path of the document you want to link to.

Docusaurus will convert the file path to be the final document url path (and remove the .md extension).

For example, if you are in folder/ and you want to reference folder/, folder/subfolder/ and otherFolder/

I am referencing a [document](

Reference to another [document in a subfolder](subfolder/

[Relative document](../otherFolder/ referencing works as well.

Using relative file paths (with .md extensions) instead of relative URL links provides the following benefits:

  • links will keep working on the GitHub interface
  • you can customize the document slugs without having to update all the links
  • a versioned doc will link to another doc of the exact same version
  • relative links are very likely to break if you update the trailingSlash config