Heading Level 1
This is a paragraph with bold text, italic text, and inline code. You can also combine them: bold and italic or bold with code.
Heading Level 2
Here's a paragraph with a link to Google and an internal link.
Heading Level 3
This paragraph contains strikethrough text and some highlighted text.
Heading Level 4
Heading Level 5
Heading Level 6
Lists
Unordered List
- First item
- Second item
- Nested item 1
- Nested item 2
- Deeply nested item
- Third item
Ordered List
- First numbered item
- Second numbered item
- Nested numbered item
- Another nested item
- Third numbered item
Task List
- Completed task
- Another completed task
- Incomplete task
- Another incomplete task
Code Blocks
JavaScript
function greet(name) { return `Hello, ${name}!`;}const message = greet('World');console.log(message);Python
def fibonacci(n): if n <= 1: return n return fibonacci(n-1) + fibonacci(n-2)for i in range(10): print(fibonacci(i))TypeScript
interface User { id: number; name: string; email: string;}const users: User[] = [ { id: 1, name: 'John', email: 'john@example.com' }, { id: 2, name: 'Jane', email: 'jane@example.com' },];Bash
#!/bin/bashecho "Hello, World!"cd /path/to/directoryls -laJSON
{ "name": "Sample Post", "version": "1.0.0", "dependencies": { "react": "^18.0.0", "next": "^13.0.0" }}Blockquotes
This is a blockquote. It can contain multiple paragraphs.
Here's the second paragraph in the blockquote.
Blockquote with heading
This blockquote contains a heading and multiple paragraphs.
- It can also contain lists
- Like this one
Tables
| Column 1 | Column 2 | Column 3 |
|---|---|---|
| Cell 1 | Cell 2 | Cell 3 |
| Cell 4 | Cell 5 | Cell 6 |
| Cell 7 | Cell 8 | Cell 9 |
Table with Alignment
| Left Aligned | Center Aligned | Right Aligned |
|---|---|---|
| Left | Center | Right |
| Data 1 | Data 2 | Data 3 |
| More data | Even more | Final data |
Images
Here's an image with a link:
Horizontal Rules
Above this line.
Below this line.
Emphasis and Formatting
- Bold text
- Italic text
- Bold and italic
Inline codeStrikethrough- Highlighted text
- Subscript
- Superscript
Links
Escaped Characters
Here are some escaped characters: *not italic*, `not code`, #not heading
HTML Elements
You can also use raw HTML in markdown:
This is a custom HTML block with styling.
- Item 1
- Item 2
Math (if supported)
Inline math: $E = mc^2$
Block math: $$ \int_{-\infty}^{\infty} e^{-x^2} dx = \sqrt{\pi} $$
Definition Lists
Term 1 : Definition 1
Term 2 : Definition 2a : Definition 2b
Footnotes
Here's a sentence with a footnote1.
Another sentence with another footnote2.
Abbreviations
The HTML specification is maintained by the W3C.
*[HTML]: HyperText Markup Language *[W3C]: World Wide Web Consortium
Conclusion
This markdown file demonstrates all the major markdown elements including:
- Headings (H1-H6)
- Paragraphs with various formatting
- Lists (ordered, unordered, nested, task lists)
- Code blocks in multiple languages
- Inline code
- Blockquotes
- Tables
- Images
- Links (various types)
- Horizontal rules
- Emphasis (bold, italic, strikethrough)
- HTML elements
- And more!