Markdown showcase
This post is a working reference for the writing features supported by the blog. It covers normal markdown, Obsidian-style links and embeds, Mermaid diagrams, code blocks, and the custom callout styles.
If you just want to start writing, copy the templates/post-template.md structure into a new file and begin there.
Paragraphs and inline formatting
You can write plain paragraphs, mix in bold text, italic text, and add inline code anywhere it helps.
Links render normally too, including standard markdown links like Astro and wiki links like Hello, terminal world.
Lists and tasks
- unordered lists work well
- they keep the same calm article rhythm
- and they are easy to scan
- Ordered lists work too.
- They are useful for step-by-step notes.
- They render with the same mono reading style.
- Draft the note
- Add metadata
- Publish the next post
Block quotes and callouts
A plain quote stays simple. It uses the normal quote style with the softer left rule.
NoteNotes look like calm quotesNotes use the themed surface background and a stronger left rule, but they still feel close to a normal markdown quote.
TipTips invert the note treatmentTips use a darker background with lighter text so they stand apart a bit more.
HintHints keep the more classic callout lookHints still render as a more explicit panel when you want a stronger visual cue.
Code blocks
type PostMeta = {
title: string;
publishedAt: string;
tags: string[];
};
export function summarize(meta: PostMeta) {
return `${meta.title} ships on ${meta.publishedAt} with ${meta.tags.length} tags.`;
}
npm install
npm run dev
npm run build
{
"title": "junior.log",
"stack": "astro",
"content": "markdown"
}
Mermaid diagrams
graph TD
A["Write in Obsidian"] --> B["Drop file into src/content/posts"]
B --> C["Astro parses markdown"]
C --> D["Theme and typography render the article"]
sequenceDiagram
autonumber
participant Writer as Writer
participant Notes as Obsidian
participant Frontmatter as Frontmatter
participant Repo as Blog Repo
participant Astro as Astro Build
participant Preview as Local Preview
participant Deploy as Deploy Target
participant Reader as Reader
Writer->>Notes: Draft post idea
Notes-->>Writer: Refine text, links, code, diagrams
Writer->>Frontmatter: Add title, description, tags, date
Frontmatter-->>Writer: Validate publishing metadata
Writer->>Repo: Save markdown into src/content/posts
Repo->>Astro: Trigger content sync
Astro->>Astro: Parse markdown and render components
Astro->>Preview: Generate local preview
Preview-->>Writer: Review typography, images, Mermaid, spacing
Writer->>Repo: Make final edits
Repo->>Deploy: Push production build
Deploy-->>Reader: Serve post page
Reader->>Deploy: Open article
Deploy-->>Reader: Return themed page with search, tags, nav
Tables
| Feature | Supported | Notes |
|---|---|---|
| Mermaid | Yes | Theme-aware and scrollable for larger diagrams |
| Wiki links | Yes | `[[slug |
| Image embeds | Yes | original and full sizing |
| Raw HTML | Yes | Useful for custom layout details |
Images and embeds
Here is an original-size Obsidian-style image embed:
And here is the same asset rendered full width:
Raw HTML
Expandable note
You can drop in small bits of raw HTML when markdown alone is not enough.
Related writing
If you want to compare styles, jump to Shipping fast with calm systems or back to Hello, terminal world.