Markdown Guide
Markdown Guide
This post demonstrates all the Markdown features supported on this blog.
Text Formatting
Bold text, italic text, strikethrough, and inline code.
Blockquotes
This is a blockquote.
It can span multiple paragraphs.
Lists
Unordered List
- Item one
- Item two
- Nested item
- Another nested item
- Item three
Ordered List
- First step
- Second step
- Third step
Code Blocks
JavaScript
function greet(name) {
console.log(`Hello, ${name}!`);
}
greet('Astro');
Python
def fibonacci(n):
a, b = 0, 1
for _ in range(n):
yield a
a, b = b, a + b
print(list(fibonacci(10)))
Bash
# Install dependencies
npm install
# Start development server
npm run dev
Tables
| Feature | Support | Notes |
|---|---|---|
| Markdown | ✅ | Full GFM |
| LaTeX Math | ✅ | KaTeX rendering |
| Code Highlight | ✅ | Shiki |
| RSS | ✅ | Auto-generated |
| Search | ✅ | Fuse.js |
| Dark Mode | ✅ | System preference |
Links
External link: GitHub
Images
LaTeX Math
Inline Math
Einstein’s equation:
The quadratic formula:
Display Math
Footnotes
Here’s a sentence with a footnote1.
Horizontal Rule
Task List
- Create Astro blog
- Add Markdown support
- Implement search functionality
- Add comments system
- Deploy to production
HTML
Some inline styled HTML works too.
Click to expand
Hidden content revealed!Footnotes
-
This is the footnote content. ↩