It is possible to make work mermaid inside \.md
file with MyST md driver ?
For now the only way I found is
$ tail conf.py
extensions = [ 'recommonmark', 'sphinxcontrib.mermaid']
from recommonmark.transform import AutoStructify
def setup(app):
app.add_transform(AutoStructify)
$
The below is rendered with recommonmark
:
```mermaid::
graph LR
a --> b
```
but not with MyST-parser
I have open this issue in MyST: https://github.com/executablebooks/MyST-Parser/issues/366
Note: recommonmark
does not render correctly tables that's why I try to use MyST-parser
mermaid
is prefectly integrated toMyST-parser
.You only need to call it like that with
{mermaid}
:No need to define in
conf.py
adef setup(app):
only: