Test Post
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
- First ordered item
- Second ordered item
- Nested ordered item A
- Nested ordered item B
- Third ordered item
Mixed Lists
- Start with ordered
- Mix in unordered
- Another unordered item
- Back to ordered
- More unordered nesting
- Even ordered within unordered
- Another ordered item
- More unordered nesting
- Final ordered item
Links and References
Basic Links
Visit GitHub Check out Stack Overflow
Links with Titles
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
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:
- Bold headers and italic emphasis
Code snippetsandstrikethrough- External links
Code Example:
javascriptfunction processMarkdown(text) { return markdownIt.render(text); }Spoiler Section:
This concludes our comprehensive Markdown feature test!