H1 Header – Main Title
H2 Header – Section Title
H3 Header – Subsection
H4 Header – Sub-subsection
H5 Header – Minor heading
H6 Header – Smallest heading
Alternative H1
Alternative H2
Text Formatting
This is bold text using double asterisks.
This is bold text using double underscores.
This is italic text using single asterisks.
This is italic text using single underscores.
This is bold and italic text.
This is bold with italic inside text.
This is strikethrough text.
Links and Images
This is an inline link to a website.
This is an inline link with title with hover title.
Automatic link: https://www.google.com
Email link:
Code
Inline code with backticks.
Inline code with_underscores_and-dashes to test.
// JavaScript code block
function hello() {
console.log("Hello World!");
return true;
}
const array = [1, 2, 3];
array.map(x => x * 2);
# Python code block
def calculate_sum(a, b):
"""Calculate sum of two numbers"""
return a + b
result = calculate_sum(10, 20)
print(f"Result: {result}")
Plain code block without language
No syntax highlighting
Just plain text
// Indented code block (4 spaces)
function indentedCode() {
return "This is indented code";
}
Lists
Unordered Lists
- Item 1
- Item 2
- Item 3
- Nested item 3.1
- Nested item 3.1
- Nested item 3.2
- Deep nested item 3.2.1
- Deep nested item 3.2.1
- Item 4
- Alternative bullet style
- Another item
- Third item
- Plus sign bullets
- Another plus item
Ordered Lists
- First item
- Second item
- Third item
- Nested numbered item
- Nested numbered item
- Another nested item
- Deep nested numbered
- Deep nested numbered
- Fourth item
Mixed Lists
- Ordered item
- Unordered nested
- Unordered nested
- Another unordered
- Second ordered
- Different bullet style
- Different bullet style
Tables
| Column 1 | Column 2 | Column 3 |
|---|---|---|
| Left | Center | Right |
| align | align | align |
| Bold | Italic | Code |
| Link: Google | Numbers | £1,234 |
Simple table without header separator:
| Name | Age | City |
| John | 25 | London |
| Jane | 30 | Paris |
| Bob | 35 | Tokyo |
Blockquotes
This is a blockquote. It can span multiple lines. It can also have bold and italic
text. Nested blockquotes: > This is nested > Inside another quote Back to first level
Horizontal Rules
Three hyphens:
Three asterisks:
Three underscores:
Line Breaks
This line has two spaces at the end So this line appears below it.
This paragraph has a normal line break. This text appears on the same line.
But this paragraph has double line breaks.
So this appears as a new paragraph.
Complex Combinations
Table with complex content
| Feature | Flutter | React Native |
|---|---|---|
| Performance | ||
| Learning Curve | Moderate |
Easy for JS devs |
| Community | Large | Huge |
| Cost | £50k-80k | £40k-70k |
List with code and links
- Setup Process: “`bash npm install -g react-native-cli react-native init MyProject “`
- Configuration:
- Edit
package.json - Edit
package.json - Update Metro config
- Test with:
npm run android
- Edit
- Deployment: > Remember to test on real devices Deploy to:
- Google Play Store
- Google Play Store
- Apple App Store
Nested formatting test
This paragraph contains bold text with inline code inside and also
italic text with strikethrough inside.
Here’s a link with **bold text inside** and
code with *italic* inside.
Special Characters and Unicode
Unicode characters: ★ ♥ ® © ™ → ← ↑ ↓
Currency: £ $ € ¥ ¢
Math symbols: ± × ÷ = ≠ ≤ ≥
Quotes: “Smart quotes” and ‘single quotes’
Dashes: em-dash — and en-dash –
Edge Cases
URLs with underscores and special chars
Code with markdown-like syntax
# This is code, not a header
**This should not be bold**
[This is not a link](fake-url)
Mixed inline elements
This sentence has code, bold, italic, strikethrough, and a link all in one line.
Empty elements test
[]()
![]()
Final Test Section
If you can see all the above elements properly formatted, then the markdown parser is working correctly! This
includes:
✓ All 6 levels of headers ✓ Bold, italic, strikethrough text ✓ Inline and block code ✓ Ordered and unordered lists ✓
Nested lists ✓ Tables with alignment ✓ Blockquotes ✓ Horizontal rules ✓ Links and images ✓ Complex combinations ✓
Special characters ✓ Edge cases
Test completed successfully! 🎉