hexo-theme-stellar icon indicating copy to clipboard operation
hexo-theme-stellar copied to clipboard

彩色备注块解析

Open conheaven opened this issue 4 months ago • 4 comments

检查清单

  • [x] 已经阅读过 官方文档 相关内容,并尝试进行搜索。
  • [ ] 尝试过在本地测试运行官方 demo 源码。
  • [ ] 尝试过在 Codespace 中测试运行官方 demo 源码。

问题描述

代码:

Image 解析后: Image 没有解析到note备注块的结束符号吗?

conheaven avatar Aug 24 '25 08:08 conheaven

Thanks for opening your first issue here! Be sure to follow the issue template!

welcome[bot] avatar Aug 24 '25 08:08 welcome[bot]

note 块不支持这样用。

单行note,即只要note块的标题,可以这样写

{% note color:cyan note内容 %}

多行note,需要这么写

{% note color:cyan 标题,不需要则留空 %}
note内容,第一行,

note内容,第二行,个人不习惯用<br>来手动换行,没测试过在note块里用<br>是否有效,额外插入一个回车符换行是没问题的。
{% endnote %}

gsh1209 avatar Sep 17 '25 12:09 gsh1209

note 块不支持这样用。

单行note,即只要note块的标题,可以这样写

{% note color:cyan note内容 %}

多行note,需要这么写

{% note color:cyan 标题,不需要则留空 %}
note内容,第一行,

note内容,第二行,个人不习惯用<br>来手动换行,没测试过在note块里用<br>是否有效,额外插入一个回车符换行是没问题的。
{% endnote %}

真的支持吗 Image

thun888 avatar Sep 29 '25 13:09 thun888

@thun888 出幻觉了😂,note不支持多行,多行可以用box

gsh1209 avatar Sep 29 '25 13:09 gsh1209