Main Header (H1)

Secondary Header (H2)

Tertiary Header (H3)

Quaternary Header (H4)

Quinary Header (H5)
Senary Header (H6)

Basic Text Formatting

This is bold text and this is italic text. You can also use double underscores for bold and single underscores for italic.

Here’s some strikethrough text and some inline code.

Code Blocks

JavaScript Code

function fibonacci(n) {
    if (n <= 1) return n;
    return fibonacci(n - 1) + fibonacci(n - 2);
}

console.log(fibonacci(10)); // Output: 55

Python Code

def greet(name):
    return f"Hello, {name}!"

print(greet("World"))

CSS Code

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

Lists

Unordered Lists

  • First item
  • Second item
    • Nested item A
    • Nested item B
      • Deeply nested item
  • Third item
  • Fourth item

Ordered Lists

  1. First ordered item
  2. Second ordered item
    1. Nested ordered item A
    2. Nested ordered item B
  3. Third ordered item

Mixed Lists

  1. Start with ordered
    • Mix in unordered
    • Another unordered item
  2. Back to ordered
    • More unordered nesting
      1. Even ordered within unordered
      2. Another ordered item
  3. Final ordered item

Links and References

Basic Links

Visit GitHub Check out Stack Overflow

Links with Titles

Google Wikipedia

Reference Links

First reference and second reference.

Images

Basic Images

Cat Picture

Images with Titles

Mountain

GIF

GIF Test

Blockquotes

This is a simple blockquote. It can span multiple lines.

Bold text and italic text work inside blockquotes too.

You can even have paragraphs within blockquotes.

Nested blockquotes are also supported! This is a second level of nesting.

Tables

Basic Table

Name Age Occupation
John 25 Developer
Jane 30 Designer
Bob 35 Manager

Complex Table

Feature Support Notes
Bold Works perfectly
Italic Also supported
Code Inline code works
Strikethrough Crossed out text
Links Clickable links

Advanced Formatting

Subscript and Superscript

  • Chemical formula: H2O (water)
  • Mathematical: E = mc2 (Einstein’s equation)
  • Scientific notation: 1.23 × 106
  • Subscript example: CO2 (carbon dioxide)

Footnotes

Here’s a sentence with a footnote[1]. You can have multiple footnotes[2] in the same document.

Spoilers

Click to reveal the secret

This is hidden content that users can reveal by clicking! It can contain any markdown formatting including:

  • Lists
  • Bold text
  • Code snippets
  • And more!
Another spoiler with a different title

More hidden content here. Spoilers are great for:

  1. Hiding spoilers for movies/books
  2. Collapsing long explanations
  3. Making content more interactive

HTML5 Embedding

Video Embed

https://www.youtube.com/watch?v=dQw4w9WgXcQ

Audio Embed

https://www.soundcloud.com/track/example

Lemmy-Specific Features

Community Links

!linuxfurs - This should link to a community [email protected] - Another community link

User Mentions

@southernwolf - This should mention a user @[email protected] - Another user mention

Mixed Content

Here’s a post that mentions @user and links to !community while discussing external resources.

Mathematical Content

Inline Math

The quadratic formula is x = (-b ± √(b² - 4ac)) / 2a.

Block Math

Area of a circle: A = πr²
Circumference: C = 2πr

Task Lists

  • [x] Completed task
  • [ ] Pending task
  • [x] Another completed task
  • [ ] Another pending task

Horizontal Rules




Mixed Complex Example

Here’s a complex example combining multiple features:

Important Note: This post demonstrates the full range of Markdown capabilities.

Key Features:

  1. Bold headers and italic emphasis
  2. Code snippets and strikethrough
  3. External links
  4. Images

Code Example:

function processMarkdown(text) {
    return markdownIt.render(text);
}

Spoiler Section:

Advanced Features
  • Subscript: H2O
  • Superscript: E = mc2
  • Footnotes[3]

This concludes our comprehensive Markdown feature test!


  1. This is the first footnote content. It can be quite long and contain bold, italic, and even code. ↩︎

  2. This is the second footnote. Footnotes are great for adding additional information without cluttering the main text. ↩︎

  3. This is a footnote within a spoiler! ↩︎