📝 Markdown
Almost everything I write starts as Markdown, including this whole website. Here are the tricks that took some figuring out:
- Create coloured alert boxes in Markdown: alert, error, warning, success and note boxes with pandoc
- CSS add-on for alert boxes: the CSS I added to easy-pandoc-templates to make those boxes work
🛠️ Tools
| What | Where |
|---|---|
| Turning Markdown into a good-looking HTML page with pandoc | easy-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 terminal | Read Markdown in the CLI |
| This website | every 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