A Markdown field guide for this blog
Every formatting trick this blog supports, in one place. Part reference, part test page.
1 min read Meta
This post doubles as a reference for writing here, and as a test page to check that everything renders nicely.
Text
Regular paragraphs, bold, italic, strikethrough, inline code and links. Autolinks work too: https://sabinolab.site.
Quotes look like this. Good for pulling out the one sentence that matters.
Lists
- Ordered lists
- Count for you
- and nest
- unordered items
- Task lists work
- And show checkboxes
Code
// JavaScript
const greet = (name) => `Hello, ${name}!`;
console.log(greet("lab"));
# Python
def fib(n):
a, b = 0, 1
for _ in range(n):
a, b = b, a + b
return a
npm run dev
Tables
| Shortcut | What it does |
|---|---|
npm run dev |
Start the local server |
npm test |
Run the tests |
npm run check |
Lint, type-check and test |
Headings make the table of contents
Every ## and ### heading shows up in the "On this page" box, and each one is a link you can share.
Like this one
That's it. Write Markdown, push, done.
Comments
No comments yet. Start the conversation!