For example:
{% mermaid %}
graph TD;
A-->B;
A-->C;
B-->D;
C-->D;
{% endmermaid %}
will render to:
{% mermaid %}
sequenceDiagram
participant Alice
participant Bob
Alice->John: Hello John, how are you?
loop Healthcheck
John->John: Fight against hypochondria
end
Note right of John: Rational thoughts <br/>prevail...
John-->Alice: Great!
John->Bob: How about you?
Bob-->John: Jolly good!
{% endmermaid %}
will render to:
{% mermaid %}
gantt
dateFormat YYYY-MM-DD
title Adding GANTT diagram functionality to mermaid
section A section
Completed task :done, des1, 2014-01-06,2014-01-08
Active task :active, des2, 2014-01-09, 3d
Future task : des3, after des2, 5d
Future task2 : des4, after des3, 5d
section Critical tasks
Completed task in the critical line :crit, done, 2014-01-06,24h
Implement parser and jison :crit, done, after des1, 2d
Create tests for parser :crit, active, 3d
Future task in critical line :crit, 5d
Create tests for renderer :2d
Add to mermaid :1d
{% endmermaid %}
will render to:
Add check and radio icon in list. you can define them like
* [*] checkbox with checked
* <*> radio with checked
* [ ] checkbox without checked
* [] checkbox without checked
* < > radio without checked
* <> radio without checkedopen() bug in windows platform, missing encoding parameter, default will by 'utf8' and you can change it in conf.py for encoding variable.include ruleh to goto index.html support.include bugclass=linenums bugAdd include syntax, so that you can include source code to markdown file, for example:
{% include file=test.js, lines=1-2 10-, language=python, class=linenums %}
{% endinclude %}
class=linenums is used to display line number.
The simplest format is:
{% include file=test.js %}
{% endinclude %}
Also support regular expression, for example:
{% include file=test.js%}re.
\$\('\.div'\)...^\}\);
{% endinclude %}
parm will not automatically escape special characters such as {()} etc. And you should separate begin pattern and end pattern with .... Extra blank before the pattern will not skipped, but ending blank will be trimmed.
test_parm.py file to test include syntax.prettify.css bug in semantic themesetup.py, add par package requirement.rst2md parsing .. contents:: bug.rst2md and make command parameter.Add toc multiple column css support, you can pass class=multiple to toc, for example:
{% toc max_depth=1,class="multiple3" %}
file1.md
file2.md
file3.md
{% endtoc %}First version