yujia48 downloadsCallout templates and copy button: insert callouts or admonitions from presets (type, custom title, collapsible fold) by hotkey, wrap the selection; copy nested callout content to clipboard. Mobile.
Two small things that come up every time you use callouts:
> [!note]- Title by hand. You probably use the same few
callouts over and over: an excerpt, a collapsed note, a prompt. Callout
Tools keeps them as templates. Run Insert callout, pick one, and it's
in, with the type, title and fold state you set.> and
[!type], or loses the formatting. Callout Tools adds a copy button to the
callout's title bar that copies the Markdown inside, cleanly.> [!note]- next to
the title, which you can change for this one callout.Everything else (adding, renaming, reordering, deleting templates, picking the type and fold state) lives in settings, so the dialog stays small. The type picker shows each callout type with its icon and colour from your theme.
Hover a callout and a copy button appears in its title bar, next to the fold arrow. It copies:
> and [!type] markers.It reads the callout from the note's source by its line number, so it copies the right callout even in long notes, works for callouts nested inside other callouts, and copies what you see in both Live Preview and Reading view. On phones and tablets the button is always shown, faintly, since there's no hover.
In Live Preview, Obsidian's own Edit this block button sits in the same corner, so it's hidden on callouts while the copy button is on. Click the callout's text to edit its source as usual. The copy button can be turned off in settings.
> characters.
English and Chinese interface, following Obsidian's language.
Search for Callout Tools in Settings → Community plugins, or copy
main.js, manifest.json and styles.css from the latest release into
<vault>/.obsidian/plugins/custom-callout/.
MIT