The documentation is a work in progress, and English edition is just an empty shell for now. I will translate it when Chinese edition has done.
details 语法是用 ::: 包围的块级语法,它可以帮助你生成 <details> 标签。
它的第一行由三部分组成:
open:是否默认展开,可以省略。class列表:以.开头,用.相连,可以省略。有几个特殊class:readonly:禁用<summary>的点击事件。empty:不显示<summary>,默认展开。bold:<summary>的字体为粗体。- 主题色:
success:绿。warning:黄。danger:红。dark:黑。
<summary>标签的innerHTML:支持 Markdown 语法,可以省略(不过因为它的优先级最高,如果你需要使用前两项,就不能省略它。你要是不需要渲染它,就敲一个反斜杠\)。
示例
summary
content
summary
content
summary
content
summary
content
summary
content
content
content
summary
content
summary
content
summary
content
summary
content
content
content
content
content

- This page is open source, improve it