It is an extension that you can use Markdown with Sphinx.
pip install sphinxcontrib-pandoc-markdown
Write the following in sphinx's conf.py
.
from sphinxcontrib.pandoc_markdown import MarkdownParser
source_suffix = [source_suffix, '.md']
source_parsers = {
'.md': MarkdownParser,
}
Can embed reStructuredText.
``` eval_rst
* This is a bulleted list.
* It has two items, the second
item uses two lines.
```
Inline math.
Since Pythagoras, we know that $a^2 + b^2 = c^2$.
Code block.
``` math
(a + b)^2 = a^2 + 2ab + b^2
(a - b)^2 = a^2 - 2ab + b^2
```
And write the following in sphinx's conf.py
.
extensions += ['sphinx.ext.mathjax']
```note
This is note.
```
```warning
This is warning.
```
```todo
This is todo.
```
And write the following in sphinx's conf.py
.
extensions += ['sphinx.ext.todo']
...
todo_include_todos=True
```mermaid
graph TD;
A-->B;
A-->C;
B-->D;
C-->D;
```
Requirement sphinxcontrib-mermaid.
```plantuml
Alice -> Bob: Hi!
Alice <- Bob: How are you?
```
```puml
Alice -> Bob: Hi!
Alice <- Bob: How are you?
```
```viz
digraph G {
A -> B;
B -> C;
}
```
```wavedrom
{ signal: [
{ name: "pclk", wave: 'p.......' },
{ name: "Pclk", wave: 'P.......' },
{ name: "nclk", wave: 'n.......' },
{ name: "Nclk", wave: 'N.......' },
{},
{ name: 'clk0', wave: 'phnlPHNL' },
{ name: 'clk1', wave: 'xhlhLHl.' },
{ name: 'clk2', wave: 'hpHplnLn' },
{ name: 'clk3', wave: 'nhNhplPl' },
{ name: 'clk4', wave: 'xlh.L.Hx' },
]}
```