Markdown tricks: coloured alert boxes with pandoc, and the CSS behind them.

2 notes
Create colored alert boxes in Markdown (MD) How to create coloured alert, error, warning, success and note boxes in Markdown with pandoc.Sep 9, 2022
CSS add-on for alert boxes The CSS I added to easy-pandoc-templates to support coloured alert boxes.Sep 9, 2022
README.md PDF

📝 Markdown

Almost everything I write starts as Markdown, including this whole website. Here are the tricks that took some figuring out:

🛠️ Tools

WhatWhere
Turning Markdown into a good-looking HTML page with pandoceasy-pandoc-templates (my fork of a collection of portable pandoc templates; the alert-box CSS is in the CSS add-on)
Reading Markdown in the terminalRead Markdown in the CLI
This websiteevery page is a Markdown file in My_Notes, turned into a site with Hugo

⚡ Pandoc quick reference

pandoc note.md -s -o note.html                         # Markdown to a standalone HTML page
pandoc note.md -s --toc -o note.html                   # with a table of contents
pandoc note.md -o note.docx                            # to Word
pandoc note.md -s --template=template.html -o note.html     # with a template