feat: add Mermaid

This commit is contained in:
st1020 2023-10-22 18:00:08 +08:00
parent 66b48ea8d7
commit 933cc3efa5
5 changed files with 48 additions and 21 deletions

View file

@ -4,6 +4,8 @@ date = "2019-03-11"
description = "Sample article showcasing basic Markdown syntax and formatting for HTML elements."
[taxonomies]
tags = ["markdown", "css", "html"]
[extra]
mermaid = true
+++
This article offers a sample of basic Markdown syntax that can be used in Zola content files, also it shows whether basic HTML elements are decorated with CSS in a Zola theme.
@ -128,3 +130,19 @@ X<sup>n</sup> + Y<sup>n</sup> = Z<sup>n</sup>
Press <kbd><kbd>CTRL</kbd>+<kbd>ALT</kbd>+<kbd>Delete</kbd></kbd> to end the session.
Most <mark>salamanders</mark> are nocturnal, and hunt for insects, worms, and other small creatures.
## Mermaid
{% 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!
{% end %}