Skip Navigation

Test Post

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

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

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

  

Python Code

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

print(greet("World"))

  

CSS Code

 css
    
.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
    1. Mix in unordered
    2. Another unordered item
  2. Back to ordered
    1. 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

Images with Titles

GIF

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

Complex Table

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.

[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.

Spoilers

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

  • Lists
  • Bold text
  • Code snippets
  • And more!

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 !linux@lemmy.ml - Another community link

User Mentions

@southernwolf - This should mention a user @southernwolf@furry.engineer - 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

  • Completed task
  • Pending task
  • 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

Code Example:

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

  

Spoiler Section:

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

[^3]: This is a footnote within a spoiler!


This concludes our comprehensive Markdown feature test!

Comments

13

Comments

13