fix(tabs): add support for Mermaid diagrams within tabs (#671)

This commit is contained in:
Cell
2025-12-31 15:15:11 +08:00
committed by GitHub
parent b4d5859b2b
commit 825d458222
3 changed files with 48 additions and 1 deletions
@@ -144,3 +144,37 @@ Content for vertical nested tab B.
{{% /tab %}}
{{< /tabs >}}
## Others
### Mermaid Diagram inside Tabs
{{< tabs >}}
{{% tab title="Flowchart" %}}
```mermaid
flowchart TD
A[Start] --> B{Is it?}
B -->|Yes| C[OK]
C --> D[Rethink]
D --> B
B ---->|No| E[End]
```
{{% /tab %}}
{{% tab title="Gantt Chart" %}}
```mermaid
gantt
title A Gantt Diagram
dateFormat YYYY-MM-DD
section Section
A task :a1, 2014-01-01, 30d
Another task :after a1 , 20d
section Another
Task in sec :2014-01-12 , 12d
another task : 24d
```
{{% /tab %}}
{{< /tabs >}}