Commit deccdd72 authored by Achilleas Pipinellis's avatar Achilleas Pipinellis

Merge branch 'docs/mermaid-supported-by-docs-site' into 'master'

Use real mermaid for mermaid result

See merge request gitlab-org/gitlab-ce!28300
parents 70a4c29d 503a861e
...@@ -480,7 +480,7 @@ GitLab 10.3. ...@@ -480,7 +480,7 @@ GitLab 10.3.
> If this is not rendered correctly, see > If this is not rendered correctly, see
https://gitlab.com/gitlab-org/gitlab-ce/blob/master/doc/user/markdown.md#mermaid https://gitlab.com/gitlab-org/gitlab-ce/blob/master/doc/user/markdown.md#mermaid
It is possible to generate diagrams and flowcharts from text using [Mermaid][mermaid]. It is possible to generate diagrams and flowcharts from text using [Mermaid](https://mermaidjs.github.io/).
In order to generate a diagram or flowchart, you should write your text inside the `mermaid` block. In order to generate a diagram or flowchart, you should write your text inside the `mermaid` block.
...@@ -496,9 +496,15 @@ Example: ...@@ -496,9 +496,15 @@ Example:
Becomes: Becomes:
<img src="./img/mermaid_diagram_render_gfm.png" width="200px" height="400px"> ```mermaid
graph TD;
A-->B;
A-->C;
B-->D;
C-->D;
```
For details see the [Mermaid official page][mermaid]. For details see the [Mermaid official page](https://mermaidjs.github.io/).
### Front matter ### Front matter
...@@ -1072,7 +1078,6 @@ A link starting with a `/` is relative to the wiki root. ...@@ -1072,7 +1078,6 @@ A link starting with a `/` is relative to the wiki root.
[^2]: This is my awesome footnote. [^2]: This is my awesome footnote.
[markdown.md]: https://gitlab.com/gitlab-org/gitlab-ce/blob/master/doc/user/markdown.md [markdown.md]: https://gitlab.com/gitlab-org/gitlab-ce/blob/master/doc/user/markdown.md
[mermaid]: https://mermaidjs.github.io/ "Mermaid website"
[rouge]: http://rouge.jneen.net/ "Rouge website" [rouge]: http://rouge.jneen.net/ "Rouge website"
[redcarpet]: https://github.com/vmg/redcarpet "Redcarpet website" [redcarpet]: https://github.com/vmg/redcarpet "Redcarpet website"
[katex]: https://github.com/Khan/KaTeX "KaTeX website" [katex]: https://github.com/Khan/KaTeX "KaTeX website"
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment