docsify 扩展了一些 Markdown 语法,可以让文档更易读。
注意:对于特殊的代码语法,最好将其放在代码的反斜线内,以避免与配置或表情符号发生冲突。
Docsify 支持 GitHub 风格 标注(也称为“警告”或“警报”)。
Caution
Caution callouts communicate negative potential consequences of an action.
Important
Important callouts communicate information necessary for users to succeed.
Note
Note callouts communicate information that users should take into account.
Tip
Tip callouts communicate optional information to help a user be more successful.
Warning
Warning callouts communicate potential risks user should be aware of.
Markdown
> [!CAUTION]
> **Caution** callouts communicate negative potential consequences of an action.
> [!IMPORTANT]
> **Important** callouts communicate information necessary for users to succeed.
> [!NOTE]
> **Note** callouts communicate information that users should take into account.
> [!TIP]
> **Tip** callouts communicate optional information to help a user be more successful.
> [!WARNING]
> **Warning** callouts communicate potential risks user should be aware of.以下 Docsify v4 标注语法已被弃用,并将在未来版本中删除。
!> Legacy Important callouts are deprecated.
?> Legacy Tip callouts are deprecated.
Markdown
!> Legacy **Important** callouts are deprecated.
?> Legacy **Tip** callouts are deprecated.[link](/demo ':disabled')有时候我们会把其他一些相对路径放到链接上,你必须告诉 docsify 你不需要编译这个链接。 例如:
[link](/demo/)它将被编译为 <a href="/#/demo/">link</a> 并将加载 /demo/README.md。 可能你想跳转到 /demo/index.html。
现在你可以做到这一点
[link](/demo/ ':ignore')你会得到 <a href="/demo/">link</a> html 代码。 不要担心,你仍然可以为链接设置标题。
[link](/demo/ ':ignore title')
<a href="/demo/" title="title">link</a>[link](/demo ':target=_blank')
[link](/demo2 ':target=_self')- [ ] foo
- bar
- [x] baz
- [] bam <~ not working
- [ ] bim
- [ ] lim- foo
- bar
- baz
- [] bam <~ not working
- bim
- lim

<!-- Multiple class names -->



<!-- 支持按百分比缩放 -->
### 你好,世界! :id=hello-world你需要在 html 和 markdown 内容之间插入空格。 这对于在 details 元素中呈现 markdown 内容非常有用。
<details>
<summary>自我评价(点击展开)</summary>
- Abc
- Abc
</details>自我评价(点击展开)
- Abc
- Abc
Markdown 内容也可以被 html 标签包裹。
<div style='color: red'>
- listitem
- listitem
- listitem
</div>- listitem
- listitem
- listitem