Complex Markdown Showcase
This document demonstrates a wide range of modern Markdown features, including GitHub Flavored Markdown (GFM) and other common extensions.
Table of Contents
- Headings
- Text Formatting
- Lists
- Links and Images
- Code Blocks
- Tables
- Blockquotes
- Task Lists
- Footnotes
- Definition Lists
- Emoji and Icons
- Alerts
- Diagrams
- Mathematical Expressions
Headings
Headings from # H1 to ###### H6 are supported.
Subheading
Sub-subheading
Smaller heading
Text Formatting
Bold, italic, strikethrough, and inline code.
Superscript^2^ and subscript2.
Highlighted text: ==This is highlighted== (supported in some Markdown flavors).
Lists
Unordered List
- Item 1
- Nested item
- Another nested item
- Item 2
- Different bullet style
- Another sub-item
Ordered List
- First item
- Sub-item
- Another sub-item
- Second item a. Letter-based sub-item b. Another one
Links and Images
Link to xAI
Relative link to section
Code Blocks
Inline code example.
Fenced code block with syntax highlighting:
# Python example
def fibonacci(n):
if n <= 1:
return n
else:
return fibonacci(n-1) + fibonacci(n-2)
print(fibonacci(10))
Code block with line numbers (GFM-specific):
function greet(name) {
return `Hello, ${name}!`;
}
console.log(greet("World"));
Tables
| Column 1 | Column 2 | Column 3 |
|---|---|---|
| Left | Center | Right |
| Row 1 | Data | 123 |
| Row 2 | More | 456 |
Blockquotes
This is a blockquote. It can span multiple lines.
Nested blockquote for emphasis.
Task Lists
- Completed task
- Incomplete task
- Another task with formatting
Footnotes
This is a sentence with a footnote.1
Definition Lists
Term 1 : Definition for term 1.
Term 2 : Another definition. : Multiple definitions are supported.
Emoji and Icons
Standard emoji: 😊🚀
GitHub emoji: :smile: :rocket:
Custom emoji (if supported): :octocat:
Alerts
Note
This is a note alert.
Warning
This is a warning alert.
Tip
This is a tip alert.
Diagrams
Mermaid diagram (supported in some Markdown renderers):
graph TD
A[Start] --> B{Decision}
B -->|Yes| C[Action 1]
B -->|No| D[Action 2]
C --> E[End]
D --> E
Mathematical Expressions
This showcases the majority of modern Markdown features supported by common parsers like GitHub Flavored Markdown and extensions like Mermaid or MathJax.
Footnotes
-
This is the footnote content. ↩