obsidian-自带的callout所有类型

1,020 阅读2分钟

TOC

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