此处是 hexo-theme-yun 对默认 Markdown 一些样式的扩展。
Blockquote
Primary
Success
Warning
Danger
Info
Gray
Yellow
使用方式
> Primary
<div class="success">
> Success
</div>
<div class="warning">
> Warning
</div>
<div class="danger">
> Danger
</div>
<div class="info">
> Info
</div>
<div class="gray">
> Gray
</div>
<div class="yellow">
> Yellow
</div>
为什么不用 Hexo Tag ?
使用 HTML 标签的方式,而非 Hexo Tag 的方式,以便于兼容任意 Markdown 预览。
譬如 Hexo Tag 的形式如下:
{% blockquote [author[, source]] [link] [source_link_title] %}
content
{% endblockquote %}
当你用本地的其他 Markdown 编辑器/或在 GitHub 上预览时会很丑。
而直接使用 HTML 标签,即便不支持该样式,div
也会被正常解析,变为默认的引用块,在预览中可正常显示。
Details 折叠
Summary
Content
<details>
<summary>Summary</summary>
Content
</details>