Alert boxes in pandoc-goodies or easy-pandoc-templates.
UPDATE: my CSS add-on has been committed by Ryan Rose, so easy-pandoc-templates now supports alert boxes.
My current favourite is easy-pandoc-templates.
I was struggling to make alert boxes in Markdown (MD), so here is how to create them.
It doesn’t feel as easy as plain Markdown, but just copy and paste if you like this style. It’s used with pandoc-goodies.
Alert box
Alert! — Alert box in blue
**Alert!** --- Alert box in blue
Error box
Error! — Error box in red
**Error!** --- Error box in red
Warning box
Warning! — Warning box in yellow
**Warning!** --- Warning box in yellow
Success box
Success! — Success box in green
**Success!** --- Success box in green
Note box
Note! — Note box in grey
**Note!** --- Note box in grey
Build this page by cloning and running pandoc
To build this page, I ran pandoc on this file:
git clone https://github.com/tajmone/pandoc-goodies
pandoc --template=/folders-to/pandoc-goodies/templates/html5/github/GitHub.html5 --self-contained ./index.md -o index.html
Today: GitHub alerts
GitHub (and many other tools, like Hugo and Obsidian) now support alerts in plain Markdown, without a template:
> [!NOTE]
> Useful information.
> [!TIP]
> A helpful hint.
> [!WARNING]
> Something that needs attention.
> [!CAUTION]
> Something that can go wrong.