← All posts

markdown_comprehensive_reference

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___
  • Strikethrough using ~~strikethrough~~
  • Highlighted text using ==highlighted== (supported in extended flavor)
  • Subscript: H2O (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

  1. First step
  2. Second step
    1. Sub-step 2a
    2. Sub-step 2b
  3. 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.2 Images

Sample Image Placeholder


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 AlignedCenter AlignedRight AlignedDefault Alignment
Row 1, Col 1Row 1, Col 2$100.00Data
Row 2, Col 1Row 2, Col 2$250.50Data
Row 3, Col 1Row 3, Col 2$1,200.00Data

6.2 Team Overview Table

IDNameRoleLocationStatus
01AliceLead ArchitectNew York🟢 Active
02BobSenior DeveloperLondon🟡 Away
03CharlieProduct DesignerTokyo🟢 Active
04DianaQA SpecialistBerlin🔴 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!


Centered HTML styled text span

9. Footnotes

Here is a statement requiring a footnote reference.1 Here is another one.2

Footnotes

  1. This is the first footnote detailing the context.

  2. This is the second footnote with more information.