Main Title (H1)
This sample document demonstrates the full spectrum of Markdown elements, formatting options, and extended syntax.
1. Text Formatting & Typography (H2)
1.1 Basic Emphasis (H3)
- Bold text using
**bold**or__bold__ - Italic text using
*italic*or_italic_ - Bold and Italic using
***bold italic***or___bold italic___ Strikethroughusing~~strikethrough~~- Highlighted text using
==highlighted==(supported in extended flavor) - Subscript: H
2O (supported in extended flavor) - Superscript: E = mc^2^ (supported in extended flavor)
2. Lists
2.1 Unordered List
- Item 1
- Sub-item 1.1
- Sub-item 1.2
- Sub-sub-item 1.2.1
- Item 2
- Item 3
2.2 Ordered List
- First step
- Second step
- Sub-step 2a
- Sub-step 2b
- Third step
2.3 Task List (Checklist)
- Completed task
- Pending task
- Future task with formatted text
2.4 Definition List (Extended Syntax)
Term 1 : Definition of Term 1
Term 2 : First definition of Term 2 : Second definition of Term 2
3. Links & Media
3.1 Links
- Standard Inline Link
- Link with Title
- Automatic link: https://www.example.com
- Email link: user@example.com
3.2 Images
4. Blockquotes
“Markdown is a lightweight markup language with plain-text-formatting syntax.”
— John Gruber
Nested blockquotes are also supported to represent multi-level discussions or responses.
5. Code & Syntax Highlighting
5.1 Inline Code
Use the print("Hello World") function or npm install command.
5.2 Fenced Code Blocks
JavaScript
// JavaScript Example
function greet(name) {
console.log(`Hello, ${name}!`);
}
greet('Developer');
Python
# Python Example
def calculate_factorial(n):
if n == 0 or n == 1:
return 1
return n * calculate_factorial(n - 1)
print(calculate_factorial(5))
6. Tables
6.1 Basic & Aligned Tables
| Left Aligned | Center Aligned | Right Aligned | Default Alignment |
|---|---|---|---|
| Row 1, Col 1 | Row 1, Col 2 | $100.00 | Data |
| Row 2, Col 1 | Row 2, Col 2 | $250.50 | Data |
| Row 3, Col 1 | Row 3, Col 2 | $1,200.00 | Data |
6.2 Team Overview Table
| ID | Name | Role | Location | Status |
|---|---|---|---|---|
| 01 | Alice | Lead Architect | New York | 🟢 Active |
| 02 | Bob | Senior Developer | London | 🟡 Away |
| 03 | Charlie | Product Designer | Tokyo | 🟢 Active |
| 04 | Diana | QA Specialist | Berlin | 🔴 Offline |
7. Mathematical Formulas (LaTeX Syntax)
Inline math formula: $E = mc^2$ and $a^2 + b^2 = c^2$.
Display math block:
$$ \frac{-b \pm \sqrt{b^2 - 4ac}}{2a} $$
8. HTML Elements
Markdown supports inline HTML for additional styling or structural needs:
Click to expand collapsible section
This content is inside a native HTML <details> element within Markdown!
9. Footnotes
Here is a statement requiring a footnote reference.1 Here is another one.2