tl;dr – A document to test various markdown elements.
Markdown Test Document
This document tests various markdown elements to ensure proper rendering.
Text Formatting
Bold text and also bold
Italic text and also italic
Bold and italic and also bold and italic
Strikethrough text
Inline code
Headings
H1 Heading
H2 Heading
H3 Heading
H4 Heading
H5 Heading
H6 Heading
Lists
Unordered Lists
- First item
- Second item
- Nested item
- Another nested item
- Deeply nested item
- Third item
- Alternative bullet
- Another item
- Yet another bullet style
Ordered Lists
- First numbered item
- Second numbered item
- Nested numbered item
- Another nested numbered item
- Third numbered item
Code Blocks
Inline Code
Use console.log() to output to the console.
Code Blocks
function greetUser(name) {
console.log(`Hello, ${name}!`);
}
greetUser('World');
def calculate_sum(a, b):
return a + b
result = calculate_sum(5, 3)
print(f"The sum is: {result}")
# Install dependencies
npm install
# Run development server
npm run dev
Blockquotes
This is a blockquote. It can span multiple lines.
This is a nested blockquote.
Links and Images
Link to Google Link with title
Auto-link: https://github.com
Tables
| Column 1 | Column 2 | Column 3 |
|---|---|---|
| Row 1, Col 1 | Row 1, Col 2 | Row 1, Col 3 |
| Row 2, Col 1 | Row 2, Col 2 | Row 2, Col 3 |
Horizontal Rule
Special Characters
- Em dash: —
- En dash: –
- Ellipsis: …
- Copyright: ©
- Trademark: ™
HTML Elements
Bold HTML
Italic HTML
Inline HTML code
HTML block element
Task Lists
- Completed task
- Incomplete task
- Another incomplete task
- Nested completed task
- Nested incomplete task
Definition Lists
Term 1 : Definition 1
Term 2 : Definition 2a : Definition 2b
Footnotes
This text has a footnote1.
Another footnote reference2.