Markdown Features Showcase

This repository demonstrates comprehensive support for GitHub Flavored Markdown (GFM) with advanced features including Expressive Code highlighting and Mermaid diagrams.

Six levels of headings using # symbols:

# H1 Heading
## H2 Heading
### H3 Heading
#### H4 Heading
##### H5 Heading
###### H6 Heading

Bold text using **text** or __text__ Italic text using *text* or _text_ Bold and italic using ***text*** Strikethrough using ~~text~~

Unordered lists:

  • Item 1
  • Item 2
    • Nested item
    • Another nested item

Ordered lists:

  1. First item
  2. Second item
    1. Nested item
    2. Another nested item

Task lists:

  • Completed task
  • Pending task
  • Another task

Basic link Image with alt text

Inline code: git status

Code blocks with syntax highlighting:

function greet(name) {
console.log(`Hello, ${name}!`)
return `Welcome to GitHub, ${name}`
}

This is a blockquote

It can span multiple lines

And be nested

FeatureSyntaxExample
Bold**text**Bold text
Italic*text*Italic text
Code`code`Inline code
CLC_L

Inline math: x=b±b24ac2ax = \frac{-b \pm \sqrt{b^2 - 4ac}}{2a}

Block math:

ex2dx=π\int_{-\infty}^{\infty} e^{-x^2} dx = \sqrt{\pi} L=12ρv2SCLL = \frac{1}{2} \rho v^2 S C_L L=12ρv2SCLL = \frac{1}{2} \rho v^2 S C_L

You can add footnotes1 to provide additional information.


Common emojis: 👍 ❤️ 😄 🚀 🎉

  • Hex: #FF0000
  • RGB: rgb(255, 0, 0)
  • HSL: hsl(0, 100%, 50%)

Note: Useful information that users should know.

Tip: Helpful advice for doing things better.

Important: Key information users need to know.

Warning: Urgent info that needs immediate attention.

Caution: Advises about risks or negative outcomes.


This repository supports Expressive Code for advanced code highlighting with full VS Code theme support, accurate syntax highlighting, and plugin features.

function calculateFibonacci(n) {
if (n <= 1) {
return n
}
return calculateFibonacci(n - 1) + calculateFibonacci(n - 2)
}
TypeScript Interface
interface User {
id: number
name: string
email: string
isActive: boolean
}
class UserService {
private users: User[] = []
addUser(user: User): void {
this.users.push(user)
}
getUserById(id: number): User | undefined {
return this.users.find((user) => user.id === id)
}
}
Terminal window
$ npm install expressive-code
$ npm run build
$ npm start
function demo() {
console.log("this line is marked as deleted")
// These lines are marked as inserted
console.log("this is the second inserted line")
return "Multiple matches of the given text are supported"
}
.container {
display: flex;
flex-direction: column;
justify-content: center;
align-items: center;
min-height: 100vh;
background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
}
5 collapsed lines
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8" />
<title>Advanced Web Application</title>
</head>
<body>
<header>
<nav>
<ul>
<li><a href="#home">Home</a></li>
3 collapsed lines
<li><a href="#about">About</a></li>
</ul>
</nav>
</header>
<main>
<section id="hero">
<h1>Welcome to Our Platform</h1>
<p>Discover amazing features</p>
</section>
</main>
</body>
</html>
index.ts
interface ApiResponse<T> {
data: T
status: number
message: string
}
async function fetchUserData(userId: number): Promise<ApiResponse<User>> {
try {
const response = await fetch(`/api/users/${userId}`)
const data = await response.json()
return {
data,
status: response.status,
message: "Success",
}
} catch (error) {
throw new Error(`Failed to fetch user data: ${error.message}`)
}
}
{
"editor.theme": "github-dark",
"workbench.colorTheme": "GitHub Dark",
"terminal.integrated.colorScheme": "github-dark"
}

This repository supports Mermaid diagrams for creating various types of visual diagrams.

graph TD
    A[Start] --> B{Is it working?}
    B -->|Yes| C[Great!]
    B -->|No| D[Debug]
    D --> B
sequenceDiagram
    participant User
    participant System
    User->>System: Login Request
    System->>User: Authentication Token
    User->>System: API Call
    System->>User: Response
classDiagram
    class Animal {
        +String name
        +makeSound()
    }
    class Dog {
        +bark()
    }
    class Cat {
        +meow()
    }
    Animal <|-- Dog
    Animal <|-- Cat
graph TD
    A[Start] --> B{Is it working?}
    B -->|Yes| C[Great!]
    B -->|No| D[Debug]
    D --> B

  1. Use headings for structure - Create a clear hierarchy
  2. Keep it readable - Use appropriate formatting without overdoing it
  3. Test your markdown - Preview before committing
  4. Use descriptive link text - Instead of “click here”
  5. Include alt text for images - For accessibility
  6. Use task lists for progress tracking - Great for project management
  7. Leverage alerts for important information - But use sparingly

Another one


This showcase demonstrates all the major GitHub Flavored Markdown features supported by this repository, including advanced Expressive Code highlighting and Mermaid diagram support.

  1. This is a footnote reference.