quartz-research-note/docs/features/callouts.md

87 lines
1.5 KiB
Markdown
Raw Normal View History

2023-07-10 02:32:24 +00:00
---
title: Callouts
2023-08-11 07:31:44 +00:00
tags:
- plugin/transformer
2023-07-10 02:32:24 +00:00
---
2023-08-11 07:31:44 +00:00
Quartz supports the same Admonition-callout syntax as Obsidian.
This includes
- 12 Distinct callout types (each with several aliases)
- Collapsable callouts
```
> [!info] Title
> This is a callout!
```
See [documentation on supported types and syntax here](https://help.obsidian.md/Editing+and+formatting/Callouts).
2023-07-10 02:32:24 +00:00
> [!warning]
2023-07-23 00:27:41 +00:00
> Wondering why callouts may not be showing up even if you have them enabled? You may need to reorder your plugins so that `Plugin.ObsidianFlavoredMarkdown()` is _after_ `Plugin.SyntaxHighlighting()`.
2023-07-10 02:32:24 +00:00
2023-08-11 07:31:44 +00:00
## Customization
- Disable callouts: simply pass `callouts: false` to the plugin: `Plugin.ObsidianFlavoredMarkdown({ callouts: false })`
- Editing icons: `quartz/plugins/transformers/ofm.ts`
## Showcase
2023-07-10 02:32:24 +00:00
> [!info]
> Default title
> [!question]+ Can callouts be nested?
2023-07-23 00:27:41 +00:00
>
> > [!todo]- Yes!, they can. And collapsed!
2023-07-23 00:27:41 +00:00
> >
> > > [!example] You can even use multiple layers of nesting.
2023-07-10 02:32:24 +00:00
> [!EXAMPLE] Examples
>
> Aliases: example
> [!note] Notes
>
> Aliases: note
2023-07-23 00:27:41 +00:00
> [!abstract] Summaries
2023-07-10 02:32:24 +00:00
>
> Aliases: abstract, summary, tldr
2023-07-23 00:27:41 +00:00
> [!info] Info
2023-07-10 02:32:24 +00:00
>
> Aliases: info, todo
2023-07-23 00:27:41 +00:00
> [!tip] Hint
2023-07-10 02:32:24 +00:00
>
> Aliases: tip, hint, important
2023-07-23 00:27:41 +00:00
> [!success] Success
2023-07-10 02:32:24 +00:00
>
> Aliases: success, check, done
2023-07-23 00:27:41 +00:00
> [!question] Question
2023-07-10 02:32:24 +00:00
>
> Aliases: question, help, faq
2023-07-23 00:27:41 +00:00
> [!warning] Warning
2023-07-10 02:32:24 +00:00
>
> Aliases: warning, caution, attention
2023-07-23 00:27:41 +00:00
> [!failure] Failure
2023-07-10 02:32:24 +00:00
>
> Aliases: failure, fail, missing
> [!danger] Error
>
> Aliases: danger, error
> [!bug] Bug
>
> Aliases: bug
> [!quote] Quote
>
> Aliases: quote, cite