Skip to content

Commit a510f4e

Browse files
AimTaozkqiang
authored andcommitted
折叠块功能说明
1 parent fa1104e commit a510f4e

File tree

2 files changed

+25
-3
lines changed

2 files changed

+25
-3
lines changed

docs/en/guide/README.md

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -757,6 +757,19 @@ Optional:
757757
<span class="label label-warning">warning</span>
758758
<span class="label label-danger">danger</span>
759759

760+
#### Fold Block
761+
762+
By using fold blocks, you can fold code, images, text, or any other content. You can use the following format in markdown:
763+
764+
```markdown
765+
{% fold info "title" %}
766+
Some content or `markdown`
767+
{% endfold %}
768+
```
769+
770+
info: Optional param similar to label tag
771+
title: Title of the fold block
772+
760773
#### CheckBox
761774

762775
You can use the following format in markdown:

docs/guide/README.md

Lines changed: 12 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -841,9 +841,18 @@ post:
841841
<span class="label label-warning">warning</span>
842842
<span class="label label-danger">danger</span>
843843

844-
:::warning
845-
若使用 `{% label primary @text %}`,text 不能以 @ 开头
846-
:::
844+
#### 折叠块
845+
846+
使用折叠块,可以折叠代码、图片、文字等任何内容,你可以在 markdown 中按如下格式:
847+
848+
```markdown
849+
{% fold info @title %}
850+
需要折叠的一段内容,支持 markdown
851+
{% endfold %}
852+
```
853+
854+
info: 和行内标签类似的可选参数
855+
title: 折叠块上的标题
847856

848857
#### 勾选框
849858

0 commit comments

Comments
 (0)