Markdown in mkdocs
For full documentation visit mkdocs.org.
Read : Markdown guide for Mkdocs
Basic Syntax
These are the elements outlined in John Gruber’s original design document. All Markdown applications support these elements.
Heading
# H1
## H2
### H3
Bold
bold text
Italic
italicized text
Blockquote
blockquote
Ordered List
- First item
- Second item
- Third item
Unordered List
- First item
- Second item
- Third item
Code
code
Horizontal Rule
Link
Image
Extended Syntax
These elements extend the basic syntax by adding additional features. Not all Markdown applications support these elements.
Table
Syntax | Description |
---|---|
Header | Title |
Paragraph | Text |
Fenced Code Block
{
"firstName": "John",
"lastName": "Smith",
"age": 25
}
Extensions
Footnotes
Footnotes1 have a label2 and the footnote’s content.
Footnotes[^1] have a label[^@#$%] and the footnote's content.
[^1]: This is a footnote content.
[^@#$%]: A footnote on the label: "@#$%".
Admonition
optional explicit title within double quotes
Any number of other indented markdown elements.
This is the second paragraph.
!!! type "optional explicit title within double quotes"
Any number of other indented markdown elements.
This is the second paragraph.
Définition
You should $x=1$ note that the title will be automatically capitalized.
$$\sum\limits_{n=1}^{100} n^2=\ldots$$
!!! Définition
You should $x=1$ note that the title will be automatically capitalized.
$$\sum\limits_{n=1}^{100} n^2=\ldots$$
Definition List
- Apple
- Pomaceous fruit of plants of the genus Malus in the family Rosaceae.
- Orange
- The fruit of an evergreen tree of the genus Citrus.
Apple
: Pomaceous fruit of plants of the genus Malus in the family Rosaceae.
Orange
: The fruit of an evergreen tree of the genus Citrus.
Emoji 👍
I love you ❤️ and 😂 and 😄 …
♠️ ♦️ ♥️ ♣️ 💠
:spades: :diamonds: :hearts: :clubs: :diamond_shape_with_a_dot_inside:
Details
Un contenu caché
Ça marche
/// details | Un contenu caché

Ça marche
///
Caption
Figure 1. It is TUX !!!!

/// figure-caption
It is TUX !!!!
///
Task List
- item 1
- item A
- item B
more text
- item a
- item b
- item c
- item C
- item 2
- item 3
- [x] item 1
- [x] item A
- [ ] item B
more text
- [x] item a
- [ ] item b
- [x] item c
- [x] item C
- [ ] item 2
- [ ] item 3
Mermaid
```mermaid
flowchart TD
A[Christmas] -->|Get money| B(Go shopping)
B --> C{Let me think}
C -->|One| D[Laptop]
C -->|Two| E[iPhone]
C -->|Three| F[fa:fa-car Car]
```
Arbre de probabilité
Mkdocs
Commands
mkdocs new [dir-name]
- Create a new project.mkdocs serve
- Start the live-reloading docs server.mkdocs build
- Build the documentation site.mkdocs -h
- Print help message and exit.
Project layout
mkdocs.yml # The configuration file.
docs/
index.md # The documentation homepage.
... # Other markdown pages, images and other files.