Skip to content

Obsidian toggle code

Instead of toggle, we can use callouts in Obsidian.
also see embed code in Markdown

✅ Callouts

see the docs for more info

> [!FAQ]- 
> some test code:
> ```
> test
> ```

Question

some test code:

test

❌ Toggle

the build in support in Obsidian for using <details><summary> doesn’t work with codeblocks, see:

Install install on windows with [winget](winget.md "winget")
winget&emsp;install -e --id&emsp;Obsidian.Obsidian

❌ Obsidian admonition

obsidian-admonition is a plugin to support callouts
however without the plugin it just looks like a code block

```ad-note
title:
Lorem ipsum dolor sit amet, consectetur adipiscing elit. Nulla et euismod nulla.
```
title:
Lorem ipsum dolor sit amet, consectetur adipiscing elit. Nulla et euismod nulla.

toggle UX