Quartz supports the same Admonition-callout syntax as Obsidian.
This includes
- 13 distinct callout types (most with several aliases)
- Collapsable callouts
> [!info] Title
> This is a callout!
In the default config ObsidianFlavoredMarkdown (order: 40) runs after SyntaxHighlighting (order: 20). If callouts don’t show up and you changed either order, restore that sequence.
Customization
The callouts are a functionality of the ObsidianFlavoredMarkdown plugin. See the plugin page for how to enable or disable them.
You can edit the icons by customizing quartz/styles/callouts.scss.
Add custom callouts
By default, custom callouts are handled by applying the note style. To make fancy ones, you have to add these lines to custom.scss.
.callout {
&[data-callout="custom"] {
--color: #customcolor;
--border: #custombordercolor;
--bg: #custombg;
--callout-icon: url("data:image/svg+xml; utf8, <custom formatted svg>"); //SVG icon code
}
}Don’t forget to ensure that the SVG is URL encoded before putting it in the CSS. You can use tools like this one to help you do that.
Showcase
Default title
Aliases: “note”
Aliases: “abstract”, “summary”, “tldr”
Aliases: “info”
Aliases: “todo”
Aliases: “tip”, “hint”, “important”
Aliases: “success”, “check”, “done”
Aliases: “question”, “help”, “faq”
Aliases: “warning”, “attention”, “caution”
Aliases: “failure”, “missing”, “fail”
Aliases: “danger”, “error”
Aliases: “bug”
Aliases: “example”
Aliases: “quote”, “cite”