Markdown Features Showcase¶
This page demonstrates all advanced Markdown features supported by MkDocs Material.
Table of Contents¶
- 0. Heading Hierarchy
- 1. Text Formatting
- 2. Code Blocks
- 3. Lists
- 4. Tables
- 5. Admonitions
- 6. Mermaid Diagrams
- 7. PlantUML Diagrams
- 8. Spoilers/Collapsible Sections
- 9. Links and Images
- 10. Blockquotes
- 11. Footnotes
- 12. Definition Lists
- 13. Keyboard Keys
- 14. Abbreviations
- 15. Emoji
- 16. Math Equations (LaTeX)
- 17. Horizontal Rules
- Summary
0. Heading Hierarchy¶
Example Heading Hierarchy¶
Markdown supports six levels of headings, from H1 to H6:
H1 Heading - Main Title
H2 Heading - Major Section
H3 Heading - Subsection
H4 Heading - Minor Section
H5 Heading - Sub-minor Section
H6 Heading - Lowest Level
Markdown Syntax¶
1. Text Formatting¶
Rendered Output¶
Bold text and italic text and bold italic
Strikethrough text for deprecated content
Highlighted text for emphasis
Inserted text for new additions
H2O for subscript and E=mc2 for superscript
Markdown Syntax¶
**Bold text** and *italic text* and ***bold italic***
~~Strikethrough text~~ for deprecated content
==Highlighted text== for emphasis
<ins>Inserted text</ins> for new additions
H~2~O for subscript and E=mc^2^ for superscript
2. Code Blocks¶
Rendered Output¶
Inline code with backticks.
def calculate_distance(x1, y1, x2, y2):
"""Calculate distance between two points."""
return ((x2 - x1)**2 + (y2 - y1)**2)**0.5
Markdown Syntax¶
Inline `code` with backticks.
```python
def calculate_distance(x1, y1, x2, y2):
"""Calculate distance between two points."""
return ((x2 - x1)**2 + (y2 - y1)**2)**0.5
```
3. Lists¶
Rendered Output¶
Unordered:
- First level
- Second level
- Third level
Ordered:
- First step
- Second step
- Sub-step A
- Sub-step B
Task List:
- Completed task
- Pending task
- Nested completed
- Nested pending
Markdown Syntax¶
**Unordered:**
- First level
- Second level
- Third level
**Ordered:**
1. First step
2. Second step
1. Sub-step A
2. Sub-step B
**Task List:**
- [x] Completed task
- [ ] Pending task
- [x] Nested completed
- [ ] Nested pending
4. Tables¶
Rendered Output¶
| Feature | Status | Priority |
|---|---|---|
| REST API | ✅ Complete | High |
| WebSocket | ✅ Complete | High |
| CLI Tools | 🚧 In Progress | Medium |
With Alignment:
| Left | Center | Right |
|---|---|---|
| Text | Text | 123 |
| More | Data | 456 |
Markdown Syntax¶
| Feature | Status | Priority |
| --------- | ---------- | -------- |
| REST API | ✅ Complete | High |
| WebSocket | ✅ Complete | High |
**With Alignment:**
| Left | Center | Right |
| :--- | :----: | ----: |
| Text | Text | 123 |
| More | Data | 456 |
5. Admonitions¶
Rendered Output¶
Information Note
This is a note admonition with formatted text and code.
Pro Tip
Use keyboard shortcuts to improve your productivity.
Important Warning
Always backup your data before making major changes.
Critical Alert
Never commit API keys to version control!
Success Message
Your changes have been saved successfully.
Error Message
Connection failed. Check network connectivity.
FAQ Item
Q: How do I get started?
A: Follow the quick start guide in the documentation.
Additional Information
Admonitions are a great way to highlight important content with visual emphasis and styled formatting.
Markdown Syntax¶
!!! note "Information Note"
This is a note admonition with **formatted text** and `code`.
!!! tip "Pro Tip"
Enable multi-carrier failover for better connectivity.
!!! warning "Important Warning"
Always perform pre-flight checks.
!!! danger "Critical Alert"
Never commit API keys!
!!! success "Success Message"
Operation completed successfully.
!!! failure "Error Message"
Connection failed.
!!! question "FAQ Item"
Question and answer format.
!!! example "Example Usage"
Code or usage example.
6. Mermaid Diagrams¶
Rendered Output¶
graph LR
A[Start] --> B{Check}
B -->|Yes| C[Success]
B -->|No| D[Error]
C --> E[End]
D --> E
sequenceDiagram
Client->>API: Request
API->>Database: Query
Database-->>API: Result
API-->>Client: Response
stateDiagram-v2
[*] --> Idle
Idle --> Active: Start
Active --> Idle: Stop
Active --> Error: Fail
Error --> Idle: Reset
pie title Documentation Status
"Complete" : 45
"In Progress" : 30
"Planned" : 25
Markdown Syntax¶
```mermaid
graph LR
A[Start] --> B{Check}
B -->|Yes| C[Success]
B -->|No| D[Error]
```
```mermaid
sequenceDiagram
Client->>API: Request
API->>Database: Query
Database-->>API: Result
API-->>Client: Response
```
```mermaid
stateDiagram-v2
[*] --> Idle
Idle --> Active: Start
Active --> Idle: Stop
```
```mermaid
pie title Documentation Status
"Complete" : 45
"In Progress" : 30
```
7. PlantUML Diagrams¶
Rendered Output¶
@startuml
!theme plain
package "Client" {
[Web App]
[Mobile App]
}
package "Backend" {
[API Gateway]
[Services]
}
database "Storage" {
[PostgreSQL]
[Redis]
}
[Web App] --> [API Gateway]
[Mobile App] --> [API Gateway]
[API Gateway] --> [Services]
[Services] --> [PostgreSQL]
[Services] --> [Redis]
@enduml
Markdown Syntax¶
```plantuml
@startuml
!theme plain
package "Client" {
[Web App]
[Mobile App]
}
package "Backend" {
[API Gateway]
[Services]
}
[Web App] --> [API Gateway]
[API Gateway] --> [Services]
@enduml
```
8. Spoilers/Collapsible Sections¶
Rendered Output¶
Confluence-Specific Feature
The spoiler syntax below renders as expandable sections in Confluence. In MkDocs, it's shown as code for demonstration purposes.
::: spoiler "Click to expand: Advanced Configuration"
This content is hidden by default and can be expanded by clicking.
---yaml
debug:
enabled: true
log_level: verbose
---
You can include **any Markdown** here:
- Lists
- Code blocks
- Tables
- Even diagrams!
:::
Markdown Syntax¶
::: spoiler "Click to expand: Advanced Configuration"
This content is hidden by default.
```yaml
debug:
enabled: true
```
You can include any Markdown here.
:::
9. Links and Images¶
Rendered Output¶
Internal Link: Go to Home
External Link: MkDocs Documentation
Link with Title: Documentation
Image:

Image with Caption:
Figure 1: Example application screenshot
Markdown Syntax¶
**Internal Link:** [Go to Home](index.md)
**External Link:** [MkDocs Docs](https://www.mkdocs.org)
**Link with Title:** [Dashboard](https://app.example.com "Tooltip text")
**Image:**

**Image with Caption:**

*Figure 1: Dashboard showing real-time metrics*
10. Blockquotes¶
Rendered Output¶
Best Practice: Always write documentation alongside your code.
"Good documentation is like a love letter to your future self."
— Damian Conway
Nested Blockquotes:
Level 1 quote
Level 2 nested quote
Level 3 deeply nested
Markdown Syntax¶
> **Best Practice**: Always test in simulation mode first.
> "Quote with attribution."
>
> — Author Name
**Nested:**
> Level 1 quote
>
> > Level 2 nested quote
> >
> > > Level 3 deeply nested
11. Footnotes¶
Rendered Output¶
MkDocs supports multiple deployment methods1 including GitHub Pages2.
This documentation uses MkDocs Material theme3.
Markdown Syntax¶
Text with footnote reference[^1] and another[^2].
[^1]: This is the first footnote.
[^2]: This is the second footnote with more details.
12. Definition Lists¶
Rendered Output¶
- Markdown
- A lightweight markup language for creating formatted text
- MkDocs
- A static site generator designed for building project documentation
- Python
- A high-level programming language used to build MkDocs
Markdown Syntax¶
Markdown
: A lightweight markup language for creating formatted text
MkDocs
: A static site generator designed for building project documentation
Python
: A high-level programming language
13. Keyboard Keys¶
Rendered Output¶
Press Ctrl+Alt+Del to restart.
Use Cmd+K on Mac or Ctrl+K on Windows.
Execute: Shift+Enter
Markdown Syntax¶
Press ++ctrl+alt+delete++ to restart.
Use ++cmd+k++ on Mac or ++ctrl+k++ on Windows.
Execute: ++shift+enter++
14. Abbreviations¶
Rendered Output¶
The HTML specification is maintained by the W3C. Hover over the abbreviations to see their full meaning.
This documentation uses CSS and JavaScript for enhanced UI features.
Markdown Syntax¶
The HTML specification is maintained by the W3C.
*[HTML]: Hyper Text Markup Language
*[W3C]: World Wide Web Consortium
15. Emoji¶
Rendered Output¶
Using shortcuts:
Status indicators:
Markdown Syntax¶
Using shortcuts: :rocket: :star: :book: :computer:
Status: :white_check_mark: :x: :warning: :information_source:
16. Math Equations (LaTeX)¶
Rendered Output¶
Inline: The equation $E = mc^2$ represents energy-mass equivalence.
Block equation:
$$ f(x) = \int_{-\infty}^{\infty} e{-x2} dx = \sqrt{\pi} $$
Complex formula:
$$ \frac{d}{dx}\left( \int_{0}^{x} f(u)\,du\right)=f(x) $$
Markdown Syntax¶
**Inline:** The equation $E = mc^2$ represents energy.
**Block equation:**
$$
f(x) = \int_{-\infty}^{\infty} e^{-x^2} dx = \sqrt{\pi}
$$
17. Horizontal Rules¶
Rendered Output¶
Text above the first horizontal rule.
Text between horizontal rules.
Text after the second horizontal rule.
Markdown Syntax¶
Text above the first horizontal rule.
---
Text between horizontal rules.
***
Text after the second horizontal rule.
Summary¶
This showcase demonstrates the full range of Markdown features supported by MkDocs Material, including:
✓ Text Formatting - Bold, italic, strikethrough, highlights, and more ✓ Code Blocks - Syntax highlighting for multiple languages ✓ Lists & Tables - Organized data presentation ✓ Admonitions - Styled callout boxes for notes and warnings ✓ Diagrams - Mermaid and PlantUML support ✓ Interactive Elements - Collapsible sections, footnotes, and task lists ✓ Rich Media - Images, links, and embedded content ✓ Advanced Features - Math equations, abbreviations, and keyboard shortcuts
For more information, see the MkDocs Material documentation.