Markdown Features
Docusaurus supports the Markdown syntax and has some additional features.
#
Front MatterMarkdown documents can have associated metadata at the top called Front Matter:
#
Markdown linksRegular Markdown links are supported using url paths or relative file paths.
Let's see how to Create a page.
#
Markdown imagesRegular Markdown images are supported.
Add an image at static/img/docusaurus.png
and use this Markdown declaration:
#
Code BlocksMarkdown code blocks are supported with Syntax highlighting.
src/components/HelloDocusaurus.js
#
AdmonitionsDocusaurus has a special syntax to create admonitions and callouts:
My tip
Use this awesome feature option
Take care
This action is dangerous
#
React componentsThanks to MDX, you can make your doc more interactive and use React components inside Markdown: