Markdown Goes Brrrrr
Heading 1
Heading 2
Heading 3
Heading 4
Heading 5
Heading 6
Paragraphs and Line Breaks
This is a paragraph with multiple sentences. Lorem ipsum dolor sit amet, consectetur adipiscing elit. Sed do eiusmod tempor incididunt ut labore et dolore magna aliqua.
This is another paragraph separated by a blank line.
This line ends with two spaces for a hard break.
This line appears on a new line.
Text Formatting
Bold text or bold text
Italic text or italic text
Bold and italic or bold and italic
Strikethrough text
Inline code with backticks
Lists
Unordered List
- Item 1
- Item 2
- Nested item 2.1
- Nested item 2.2
- Deeply nested item 2.2.1
-
Item 3
- Alternative bullet
- Another item
Ordered List
- First item
- Second item
- Nested item 2.1
- Nested item 2.2
- Third item
Task List
- Completed task
- Incomplete task
- Another incomplete task
Links
Images
Blockquotes
This is a blockquote. It can span multiple lines.
Blockquotes can be nested
Like this
And even deeper
Blockquotes can contain other
markdownelements.
Code Blocks
Inline Code
Use console.log() to print in JavaScript.
Fenced Code Blocks
function greet(name) {
console.log(`Hello, ${name}!`);
}
greet("World");
def factorial(n):
if n <= 1:
return 1
return n * factorial(n - 1)
print(factorial(5))
def fibonacci(n)
return n if n <= 1
fibonacci(n - 1) + fibonacci(n - 2)
end
puts fibonacci(10)
<!DOCTYPE html>
<html>
<head>
<title>Test Page</title>
</head>
<body>
<h1>Hello World</h1>
</body>
</html>
.container {
max-width: 1200px;
margin: 0 auto;
padding: 20px;
}
.button {
background-color: #007bff;
color: white;
border: none;
padding: 10px 20px;
}
#!/bin/bash
echo "Hello from bash"
ls -la
cd /home/user
Indented Code Block
This is an indented code block
Created with 4 spaces
No syntax highlighting
Horizontal Rules
Tables
| Header 1 | Header 2 | Header 3 |
|---|---|---|
| Cell 1 | Cell 2 | Cell 3 |
| Cell 4 | Cell 5 | Cell 6 |
Aligned Tables
| Left Aligned | Center Aligned | Right Aligned |
|---|---|---|
| Left | Center | Right |
| Text | Text | Text |
Footnotes
Here’s a sentence with a footnote1.
Another sentence with a footnote2.
Definition Lists
- Term 1
- Definition 1
- Term 2
- Definition 2a
- Definition 2b
Abbreviations
The HTML specification is maintained by the W3C.
Escaping Characters
*Not italic*
*Not bold*
# Not a heading
[Not a link](https://example.com)
HTML Elements
Click to expand
This content is hidden by default.Ctrl + C
Highlighted text
Superscript and subscript
Emojis
:smile: :heart: :thumbsup: :rocket: :fire:
😀 😃 😄 😁 🚀 ❤️ 👍
Special Characters
Copyright: ©
Registered: ®
Trademark: ™
Less than: <
Greater than: >
Ampersand: &
Math (if supported)
Inline math: $E = mc^2$
Block math:
\[\int_{0}^{\infty} e^{-x^2} dx = \frac{\sqrt{\pi}}{2}\]Combination Examples
Code with Description
Here’s how to create a function in Python:
def calculate_sum(a, b):
"""
Calculate the sum of two numbers.
Args:
a (int): First number
b (int): Second number
Returns:
int: Sum of a and b
"""
return a + b
result = calculate_sum(5, 3)
print(f"Result: {result}")
Blockquote with Code
Note: Always validate user input
const sanitize = (input) => { return input.trim().replace(/[<>]/g, ''); };
List with Code
- Install dependencies:
npm install - Run the development server:
npm run dev - Build for production:
npm run build
Conclusion
This document tests all major markdown elements including headings, text formatting, lists, links, images, code blocks, tables, and more. Use this to verify your markdown rendering functionality.