Markdown page
This is a page generated from markdown to illustrate the Markdown page feature.
It supports all the regular MDX features, as you can see:
info
Useful information.
Live Editor
Result
SyntaxError: Unexpected token (1:8)
1 : return ()
            ^Using absolute path#
- Apple
 - Orange
 - Banana
 
This is an apple 🍎
This is an orange 🍊
This is a banana 🍌
Import Mdx and Md files#
Chapter 1
Lorem ipsum chapter 1
Chapter 2
Lorem ipsum chapter 2
Comments#
MDX comments can be used with
See, nothing is displayed:
Import code block from source code file#
Let's say you have a React component.
You can import and use it in MDX:
myMarkdownFile.mdx
http://localhost:3000
MyComponent rendered !
bool=false
But you can also display its source code directly in MDX, thanks to Webpack raw-loader
myMarkdownFile.mdx
http://localhost:3000
Test#
Live Editor
Result
SyntaxError: Unexpected token (1:8)
1 : return ()
            ^Code block test#
Title
Live Editor
Result
SyntaxError: Unexpected token (1:8)
1 : return ()
            ^test
testdirect using of pre#
Custom heading id#
Children elements inside pre/code elements#
See https://github.com/facebook/docusaurus/pull/1584
http://localhost:3000
Lol bro
http://localhost:3000
Lol bro
Pipe#
Code tag + double pipe: ||
Code tag + double pipe: ||
Images edge cases#
