
Markdown Rendering Test
This post tests all Markdown features to ensure they render correctly.
Code Blocks
JavaScript
function greetUser(name) {
console.log(`Hello, ${name}!`);
return `Welcome to our app, ${name}`;
}
const user = "Developer";
greetUser(user);
Python
def calculate_fibonacci(n):
if n <= 1:
return n
return calculate_fibonacci(n-1) + calculate_fibonacci(n-2)
# Generate first 10 Fibonacci numbers
for i in range(10):
print(f"F({i}) = {calculate_fibonacci(i)}")
HTML
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<title>Test Page</title>
</head>
<body>
<h1>Hello World</h1>
<p>This is a test paragraph.</p>
</body>
</html>
Tables
Simple Table
Feature | Status | Notes |
---|---|---|
Syntax Highlighting | ✅ Working | All languages supported |
Tables | ✅ Working | Proper borders and styling |
Code Blocks | ✅ Working | Dark theme with copy button |
GitHub Flavored Markdown | ✅ Working | Full GFM support |
Complex Table
Framework | Language | Performance | Learning Curve | Community |
---|---|---|---|---|
Next.js | JavaScript/TypeScript | ⭐⭐⭐⭐⭐ | ⭐⭐⭐ | ⭐⭐⭐⭐⭐ |
Nuxt.js | JavaScript/TypeScript | ⭐⭐⭐⭐ | ⭐⭐⭐ | ⭐⭐⭐⭐ |
SvelteKit | JavaScript/TypeScript | ⭐⭐⭐⭐⭐ | ⭐⭐ | ⭐⭐⭐ |
Remix | JavaScript/TypeScript | ⭐⭐⭐⭐ | ⭐⭐⭐⭐ | ⭐⭐⭐ |
Lists
Unordered Lists
- First item
- Second item with bold text
- Third item with italic text
- Fourth item with
inline code
- Fifth item with a link
Ordered Lists
- First step
- Second step
- Third step with nested items:
- Sub-item A
- Sub-item B
- Sub-item C
- Fourth step
- Final step
Task Lists (GitHub Flavored Markdown)
- Completed task
- Another completed task
- Pending task
- Another pending task
-
Cancelled task(completed but crossed out)
Blockquotes
This is a simple blockquote.
This is a longer blockquote that spans multiple lines and contains bold text, italic text, and
inline code
. It should be properly styled with a left border and background.
Blockquote with heading
This blockquote contains a heading and multiple paragraphs.
It should maintain proper spacing and formatting throughout.
Text Formatting
- Bold text
- Italic text
- Bold and italic text
Strikethrough textInline code
- Link to external site
- Link with title
Inline Code vs Code Blocks
Here's some inline code
in a sentence.
This is a code block without language specification.
It should still be properly formatted.
GitHub Flavored Markdown Features
Autolinks
Strikethrough
This text should be crossed out
Tables with Alignment
Left Aligned | Center Aligned | Right Aligned |
---|---|---|
Left | Center | Right |
Text | Text | Text |
More | More | More |
Headings Test
Heading 1
Heading 2
Heading 3
Heading 4
Heading 5
Heading 6
Mixed Content
Here's a paragraph with bold, italic, and code
text, followed by a list:
- Item with
code
- Item with bold text
- Item with italic text
- Item with a link
And here's a code block:
interface User {
id: number;
name: string;
email: string;
isActive: boolean;
}
const users: User[] = [
{ id: 1, name: "John Doe", email: "john@example.com", isActive: true },
{ id: 2, name: "Jane Smith", email: "jane@example.com", isActive: false },
];
function getActiveUsers(users: User[]): User[] {
return users.filter(user => user.isActive);
}
Horizontal Rules
Above this line.
Below this line.
Final Test
If you can see all the above elements properly formatted with:
- ✅ Syntax-highlighted code blocks
- ✅ Properly styled tables with borders
- ✅ Formatted lists and blockquotes
- ✅ Working links and text formatting
Then the Markdown rendering is working correctly! 🎉