Suppose I want to add a code block that displays an error in red color when ‘error’ is appended to the three backticks. How do I do it in obsidian?
I see some plugins do similar things, but exactly how to do so I’m not sure. You could however use something like:
> [!error]+ > > ```c > ... > int x = 1 / 0; > ... > ```
+ allows the callout to be expanded and collapsed. Alternatively use
- to make the error render collapsed by default. Remove it to be non-collapsable.