Markdown Formatting Guide
This post demonstrates all the Markdown formatting effects supported by this theme.
First paragraph… (used for the list preview)
The rest of the body…
Text Formatting
This is a plain paragraph. This is bold text, this is italic text, this is bold italic. You can also use strikethrough to mark deprecated content.
Inline code is wrapped in backticks: const hello = 'world', which works well for marking variable names or commands.
Blockquotes
The value of design goes beyond completion. Good design should withstand the test of time, retaining its distinct charm and usefulness as the years pass.
You can also use multi-paragraph quotes:
First paragraph of the quote.
Second paragraph of the quote, showing the multi-paragraph effect.
Source attribution (put <cite> on the last line inside the blockquote):
The value of design goes beyond completion.
— Dieter Rams
Pullquote (using the blockquote.pullquote variant):
You hated those people so fiercely, fought them for so long, only to become just like them in the end. No ideal in this world is worth that kind of ruin as its price. — One Hundred Years of Solitude
Callouts
Supports four shorthand types: note / tip / info / warning. Here’s the minimal syntax first; for finer control, you can also write raw HTML.
:::note[Title]
This is the body text.
:::If you need raw HTML for more precise control:
<div class="callout note">
<p class="callout-title" data-icon="none">Title</p>
<p>This is the body text.</p>
</div>Notes:
- The default icon is determined by the type; no need for
<span class="callout-icon">. - To hide the icon, use
data-icon="none"on.callout-title. - A custom icon can be set with
data-icon="✨"(optional).
Shorthand Variant Examples (Callout)
This set of examples mainly shows how different types, title forms, and content structures render on the frontend.
This is an example with no title.
With a title
This is a normal paragraph of body text.
Tip
Can include inline code npm run dev, emphasized text, and links.
Info
const hello = 'world';Warning
Can also include a blockquote.
Can also span multiple paragraphs.
The basic syntax is as follows:
:::type[optional title]
body content
:::Only note / tip / info / warning are supported; unsupported types (like :::foo[...]) currently fall back to note.
Lists
Unordered List
- First item
- Second item
- Nested item A
- Nested item B
- Third item
Ordered List
- Preparation
- Install dependencies
- Run the project
- Development mode
- Production build
Task List
- Finish the design draft
- Build the homepage
- Write the docs
- Ship to production
Code Blocks
The code blocks below demonstrate the toolbar (language / line count / copy button) and line numbers (on by default).
JavaScript
// A simple Astro component example
const greeting = 'Hello, World!';
function fibonacci(n) {
if (n <= 1) return n;
return fibonacci(n - 1) + fibonacci(n - 2);
}
console.log(fibonacci(10)); // 55Python
def quick_sort(arr):
"""Quick sort implementation"""
if len(arr) <= 1:
return arr
pivot = arr[len(arr) // 2]
left = [x for x in arr if x < pivot]
middle = [x for x in arr if x == pivot]
right = [x for x in arr if x > pivot]
return quick_sort(left) + middle + quick_sort(right)
# Example usage
numbers = [3, 6, 8, 10, 1, 2, 1]
print(quick_sort(numbers))CSS
.card {
display: flex;
flex-direction: column;
padding: 1.5rem;
border-radius: 12px;
background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
box-shadow: 0 10px 40px rgba(0, 0, 0, 0.15);
}Shell
# Install dependencies and start the dev server
npm install
npm run dev
# Build for production
npm run buildTables
| Feature | Status | Notes |
|---|---|---|
| Responsive layout | ✅ | Fully adapts to mobile |
| Dark mode | 🚧 | In progress |
| RSS feed | ✅ | Supports multiple feeds |
| i18n | ❌ | Planned |
Links and Images
This is an external link that opens in a new tab.
Figure / Caption
Case A: img + figcaption
Case B: no figcaption
Case C: picture + figcaption (optional)
Note: under the current styles,
imgandpicturelook visually identical.pictureis mainly for providing multiple “fallback versions” of the same image — the browser automatically picks the best match (e.g. a small image for mobile, a large one for desktop, or preferring WebP/AVIF). If you don’t need automatic version selection,imgis fine.
Gallery
Case: two-image layout (with optional figcaption)
-
First caption (optional) -
Second caption (optional)
Horizontal Rule
Some content above.
Some other content below.
Math and Special Characters
Common math symbols: π ≈ 3.14159, e ≈ 2.71828
Special characters: © 2026 · ™ · ® · € · £ · ¥ · → · ← · ↑ · ↓
English Paragraph
The best way to predict the future is to invent it. — Alan Kay
Lorem ipsum dolor sit amet, consectetur adipiscing elit. Sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris.
Mixed Formatting
This is a paragraph mixing bold, italic, code, and links. You can freely combine these elements within a single paragraph to create a richer reading experience.
That covers all the Markdown formats supported by this theme. If you spot any rendering issues, feel free to open an Issue!