#
Markdown pageThis 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 1Lorem ipsum chapter 1
#
Chapter 2Lorem ipsum chapter 2
#
CommentsMDX comments can be used with
See, nothing is displayed:
#
Import code block from source code fileLet'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
#
TestLive Editor
Result
SyntaxError: Unexpected token (1:8) 1 : return () ^
#
Code block testTitle
Live Editor
Result
SyntaxError: Unexpected token (1:8) 1 : return () ^
test
test
pre
#
direct using of #
Custom heading id#
Children elements inside pre/code elementsSee https://github.com/facebook/docusaurus/pull/1584
http://localhost:3000
Lol bro
http://localhost:3000
Lol bro
#
PipeCode tag + double pipe: ||
Code tag + double pipe: ||