Blog formatting example
A compact reference for the Markdown elements this blog supports.
This is a deliberately practical reference, not a personal story. It shows the elements available when writing a post in plain Markdown.
A small illustration
Everyday Markdown
- Lists keep related points easy to scan.
- Bold text, emphasis, and
inline codestay distinct. - Links remain ordinary links.
Good formatting should clarify the writing, not compete with it.
A table
| Element | Use it for | Mobile behaviour |
|---|---|---|
| Heading | A new idea | Wraps naturally |
| Table | A compact comparison | Scrolls within the article |
| Code | A concrete example | Scrolls within the article |
A Java example
record Note(String title, boolean published) {
boolean isVisible() {
return published && !title.isBlank();
}
}
Astro provides this syntax highlighting through its built-in Shiki integration; no client-side highlighting library is loaded.
A simple diagram
Writing a post
Create a .md file in src/content/blog/. Its frontmatter needs a title, description, lowercase kebab-case slug, draft, and publication date. Set draft: true to keep a post out of the generated site.