使用
{% note [class] [no-icon] [summary] %}
内容
{% endnote %}
[class]
: 可选。 支持的值:default
|primary
|success
|info
|warning
|danger
.[no-icon]
: 可选。 禁用注释中的图标。(可以在配置文件全局禁用)[summary]
: 可选。 指定摘要(会变成折叠样式)。
示例
{% note %}
无参数示例
{% endnote %}
无参数示例
{% note default %}
default
{% endnote %}
default
{% note primary %}
primary
{% endnote %}
primary
{% note info %}
info
{% endnote %}
info
{% note success %}
success
{% endnote %}
success
{% note warning %}
warning
{% endnote %}
warning
{% note danger %}
danger
{% endnote %}
danger
{% note success no-icon %}
success no-icon
{% endnote %}
{% note primary 标题 %}
内容
{% endnote %}
摘要
内容
嵌套
{% note success %}
《登高》
唐-杜甫
风急天高猿啸哀,渚清沙白鸟飞回。
无边落木萧萧下,不尽长江滚滚来。
{% note danger %}
万里悲秋常作客,百年多病独登台。
艰难苦恨繁霜鬓,潦倒新亭浊酒杯。
{% endnote %}
{% endnote %}
《登高》
唐-杜甫
风急天高猿啸哀,渚清沙白鸟飞回。
无边落木萧萧下,不尽长江滚滚来。
万里悲秋常作客,百年多病独登台。
艰难苦恨繁霜鬓,潦倒新亭浊酒杯。