Markdown Features Showcase
- Demo
- Markdown
- Features
This post demonstrates all supported Markdown features in the blog.
Headings
All heading levels from H1 to H6 are fully supported with beautiful typography.
Third Level Heading
Fourth Level Heading
Fifth Level Heading
Sixth Level Heading
Text Formatting
You can use bold text, italic text, or bold and italic together. You can also use strikethrough text.
Lists
Unordered Lists
- First item
- Second item
- Third item
- Nested item 1
- Nested item 2
- Fourth item
Ordered Lists
- First step
- Second step
- Third step
- Sub-step A
- Sub-step B
- Fourth step
Task Lists
- Completed task
- Incomplete task
- Another task to do
Links
You can create inline links and also use links with titles.
External links automatically open in a new tab.
Code
Inline Code
Use inline code within your text like this: const greeting = "Hello World".
Code Blocks
Here's a JavaScript example:
// Function to calculate factorial
function factorial(n) {
if (n === 0 || n === 1) {
return 1;
}
return n * factorial(n - 1);
}
console.log(factorial(5)); // Output: 120
Python example:
def fibonacci(n):
"""Generate Fibonacci sequence up to n terms"""
fib_sequence = []
a, b = 0, 1
for _ in range(n):
fib_sequence.append(a)
a, b = b, a + b
return fib_sequence
# Generate first 10 Fibonacci numbers
print(fibonacci(10))
TypeScript example:
interface User {
id: number;
name: string;
email: string;
}
const fetchUser = async (id: number): Promise<User> => {
const response = await fetch(`/api/users/${id}`);
return response.json();
};
Shell commands:
# Install dependencies
npm install
# Build the project
npm run build
# Start development server
npm run dev
Blockquotes
"The best way to predict the future is to invent it."
— Alan Kay
You can also nest blockquotes:
This is the first level of quoting.
This is nested blockquote.
Back to the first level.
Tables
| Feature | Support | Notes |
|---|---|---|
| Headers | ✅ | All levels (H1-H6) |
| Lists | ✅ | Ordered, unordered, nested |
| Code | ✅ | Inline and blocks with highlighting |
| Tables | ✅ | GitHub Flavored Markdown |
| Images | ✅ | Lazy loading, responsive |
| Links | ✅ | Internal and external |
Here's a more complex table:
| Language | Paradigm | Typing | First Appeared |
|---|---|---|---|
| JavaScript | Multi-paradigm | Dynamic | 1995 |
| Python | Multi-paradigm | Dynamic | 1991 |
| TypeScript | Multi-paradigm | Static | 2012 |
| Rust | Multi-paradigm | Static | 2010 |
| Go | Procedural | Static | 2009 |
Images
Images are automatically responsive and lazy-loaded
Horizontal Rules
You can create horizontal rules with:
Emphasis
This is emphasized text and this is strong text.
You can also use underscores for emphasis and double underscores for strong.
Nested Content
You can combine multiple elements:
-
First Point: This demonstrates
codewithin a listconst example = "Code block in a list"; -
Second Point: Here's a table within a list:
Column 1 Column 2 Data 1 Data 2 -
Third Point: And a blockquote:
Quote within a list
Advanced Features
Math (if needed in the future)
Although not currently implemented, you could add KaTeX or MathJax for mathematical expressions.
Syntax Highlighting
The code blocks support syntax highlighting for many languages:
- JavaScript/TypeScript
- Python
- Ruby
- Go
- Rust
- Java
- C/C++
- Shell/Bash
- HTML/CSS
- JSON/YAML
- And many more!
Conclusion
This showcase demonstrates the comprehensive Markdown rendering capabilities of the blog. The styling adapts beautifully to both light and dark modes, with carefully chosen typography and spacing for optimal readability.
Enjoy writing your content! 🚀