TOC
- 1-效果示例
- 1.1-note
- 1.2-abstract,%20summary,%20tldr
- 1.3-info,%20todo
- 1.4-tip,%20hint,%20important
- 1.5-success,%20check,%20done
- 1.6-question,%20help,%20faq
- 1.7-warning,%20caution,%20attention
- 1.8-failure,%20fail,%20missing
- 1.9-danger,%20error
- 1.10-bug
- 1.11-example
- 1.12-quote,%20cite
- 1.13-Title%20和%20body
- 1.14-Folding
- 1.15-Customizations
- 2-配合%20various%20complement%20插件快速添加
obsidian-自带的callout所有类型
全部类型列表
- note
- abstract, summary, tldr
- info, todo
- tip, hint, important
- success, check, done
- question, help, faq
- warning, caution, attention
- failure, fail, missing
- danger, error
- bug
- example
- quote, cite
1-效果示例
1.1-note
[!note] note
1.2-abstract, summary, tldr
[!abstract] abstract
[!summary] summary
[!tldr] tldr
1.3-info, todo
[!info] info
[!todo] todo
1.4-tip, hint, important
[!tip] tip
[!hint] hint
[!important] important
1.5-success, check, done
[!success] success
[!check] check
[!done] done
1.6-question, help, faq
[!question] question
[!help] help
[!faq] faq
1.7-warning, caution, attention
[!warning] warning
[!caution] caution
[!attention] attention
1.8-failure, fail, missing
[!failure] failure
[!fail] fail
[!missing] missing
1.9-danger, error
[!danger] danger
[!error] error
1.10-bug
[!bug ] bug
1.11-example
[!example ] example
1.12-quote, cite
[!quote ] quote
[!cite ] cite
1.13-Title 和 body
[!TIP] Callouts can have custom titles, which also supports markdown!
1.14-Folding
1,默认折叠
[!FAQ]- Are callouts foldable? Yes! In a foldable callout, the contents are hidden until it is expanded.
2,默认展开
[!FAQ] + Are callouts foldable? Yes! In a foldable callout, the contents are hidden until it is expanded.
1.15-Customizations
片段和插件也可以定义自定义标注,或者覆盖默认选项。标注类型和图标在CSS中定义,其中颜色是“r, g,b”元组,图标是任何内部支持的图标(如“lucide-info”)的图标ID。或者,您可以将SVG图标指定为字符串。
.callout[data-callout="my-callout-type"] {
--callout-color: 0, 0, 0;
--callout-icon: icon-id;
--callout-icon: '<svg>...custom svg...</svg>';
}
2-配合 various complement 插件快速添加
字典列表:
[!info] 由于很多是相同类型的,所以每类选取一个
- note
- abstract, summary, tldr
- info, todo
- tip, hint, important
- success, check, done
- question, help, faq
- warning, caution, attention
- failure, fail, missing
- danger, error
- bug
- example
- quote, cite
%% note %%
callout-note => > [!NOTE] \n > $END$ | snip-note |note | NOTE
%% summary %%
callout-summary => > [!summary] \n > $END$ | snip-summary |summary | summary | summ
%% info %%
callout-info => > [!info] \n > $END$ | snip-info |info | info | info
%% important %%
callout-important => > [!important] \n > $END$ | snip-important |important | import
%% success %%
callout-success => > [!success] \n > $END$ | snip-success |success
%% question %%
callout-question => > [!question] \n > $END$ | snip-question |question | ques
%% warning %%
callout-warning => > [!warning] \n > $END$ | snip-warning |warning | warn
%% failure %%
callout-failure => > [!failure] \n > $END$ | snip-failure |failure | fail
%% error %%
callout-error => > [!error] \n > $END$ | snip-error |error
%% bug %%
callout-bug => > [!bug] \n > $END$ | snip-bug |bug
%% example %%
callout-example => > [!example] \n > $END$ | snip-example | exam
%% quote %%
callout-quote => > [!quote] \n > $END$ | snip-quote |quo