GFM Elements Showcase - Complete Markdown Display Test
GFM Elements Showcase
This post demonstrates all the GitHub Flavored Markdown (GFM) elements and how they're displayed in this blog. Use this as a reference for formatting your posts.
Text Formatting
Bold text and italic text and bold italic text.
Strikethrough text for corrections or deletions.
Inline code for technical terms.
Headers
Header 1
Header 2
Header 3
Header 4
Header 5
Header 6
Lists
Unordered Lists
- First item
- Second item
- Nested item
- Another nested item
- Third item
Ordered Lists
- First step
- Second step
- Sub-step 2.1
- Sub-step 2.2
- Third step
Task Lists
- Completed task
- Incomplete task
- Another pending task
- Nested completed task
- Nested incomplete task
Links and Images
Regular Links
Reference Links
Reference link 1 Reference link 2
Images
Images with Titles
Code Blocks
Syntax Highlighted Code
js
py
sh
Diff Code Blocks
diff
Another Diff Example
diff
Code Blocks with Line Numbers
html
Inline Code Examples
Use the git status command to check repository status.
The file is located at ~/projects/my-app/src/components/Button.jsx.
Tables
Basic Table
Table with Alignment
Complex Table
Blockquotes
Simple Blockquote
This is a simple blockquote. It's useful for highlighting important information or quotes.
Blockquote with Formatting
Important: This is a blockquote with formatted text and
inline code.It can span multiple paragraphs and include various formatting elements.
Nested Blockquotes
This is the outer blockquote.
This is a nested blockquote.
This is a deeply nested blockquote.
Back to the outer level.
Horizontal Rules
Different Styles
Emojis
Here are some commonly used emojis in technical documentation:
✅ Success | ❌ Failure | ⚠️ Warning | ℹ️ Information 🔧 Settings | 🚀 Deploy | 📊 Analytics | 🔒 Security
Mathematical Expressions (if supported)
Inline math: $E = mc^2$
Block math: $$ \sum_{i=1}^{n} i = \frac{n(n+1)}{2} $$
Details/Summary (HTML)
<details> <summary>Click to expand technical details</summary>This is hidden content that can be expanded by clicking the summary. It's useful for:
- Technical specifications
- Code explanations
- Additional context
- Debugging information
Embedded Media
YouTube Video
Vimeo Video
Footnotes
Here's a sentence with a footnote1.
And another one2.
Definition Lists
Term 1 : Definition 1
Term 2 : Definition 2 : Additional definition for the same term
Highlighted Text (if supported)
==This text should be highlighted==
Subscript and Superscript
H2O is the chemical formula for water.
E = mc^2^ is Einstein's famous equation.
Scientific Examples
- CO
2for carbon dioxide - X
10for multiplication by 10 - (x
1, x2, x3) for coordinates - 2^10^ for 2 to the power of 10
- m^3^ for cubic meters
- f'(x)^2^ for squared derivative
Mathematical Expressions
The Pythagorean theorem: a^2^ + b^2^ = c^2^
Logarithmic expression: log2(8) = 3
Chemical equation: 2H2 + O2 → 2H2O
Keyboard Keys
Press ++ctrl+c++ to copy.
Use ++alt+tab++ to switch windows.
Alerts and Callouts
🔥 Tip: Use keyboard shortcuts to improve productivity.
⚠️ Warning: Always backup your data before making changes.
❗️ Note: This feature is experimental and may change.
GitHub-Style Alerts
[!NOTE] This is a standard note alert. Use it for general information and reminders.
[!TIP] This is a tip alert. Use it for helpful suggestions and best practices.
[!WARNING] This is a warning alert. Use it for important cautions and potential issues.
[!IMPORTANT] This is an important alert. Use it for critical information that must not be missed.
[!CAUTION] This is a caution alert. Use it for potential dangers and negative consequences.
Mermaid Diagrams (if supported)
Raw HTML
You can also embed raw HTML when needed:
<div style="background: linear-gradient(45deg, #ff6b6b, #4ecdc4); color: white; padding: 20px; border-radius: 10px; text-align: center;"> <h3>Custom HTML Content</h3> <p>This is a custom-styled div using raw HTML.</p> </div>Combined Elements
Here's a section that combines multiple elements:
💡 Pro Tip: When working with APIs, always handle errors gracefully:
jsRemember to check the API documentation for more details.
Conclusion
This showcase demonstrates all the major GFM elements supported. Use these formatting options to create rich, engaging content that's easy to read and understand.
Happy writing! 🎉

