For example:
{% mermaid %}
graph TD;
A-->B;
A-->C;
B-->D;
C-->D;
{% endmermaid %}
will render to:
{% mermaid %} graph TD; A-->B; A-->C; B-->D; C-->D; {% endmermaid %}
{% 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 %}
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
prevail...
John-->Alice: Great!
John->Bob: How about you?
Bob-->John: Jolly good!
{% endmermaid %}
{% 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:
{% 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 %}
Remove bootstrap theme
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 checked
open()
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.
Add test_parm.py
file to test include
syntax.
Fix customized prettify.css
bug in semantic theme
setup.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 %}
Add cusome_css support, so you can pass your custom css in conf.py.
First version
此处可能存在不合适展示的内容,页面不予展示。您可通过相关编辑功能自查并修改。
如您确认内容无涉及 不当用语 / 纯广告导流 / 暴力 / 低俗色情 / 侵权 / 盗版 / 虚假 / 无价值内容或违法国家有关法律法规的内容,可点击提交进行申诉,我们将尽快为您处理。