Title

Title

· 2 min read

description


title: "MDX Example" description: "A comprehensive MDX example file for testing all elements"

MDX Example File

Headings

H1 - This is a Level 1 Heading

This is H1

H2 - This is a Level 2 Heading

This is H2

H3 - This is a Level 3 Heading

This is H3

H4 - This is a Level 4 Heading

This is H4

H5 - This is a Level 5 Heading

This is H5

H6 - This is a Level 6 Heading

This is H6

Text Formatting

Bold Text
Italic Text
Strikethrough
Underlined Text


Blockquotes

This is a blockquote.
Multi-line blockquotes are supported.


Lists

Unordered List:

  • Item 1
  • Item 2
    • Sub-item 1
    • Sub-item 2

Ordered List:

  1. First item
  2. Second item
    1. Sub-item 1
    2. Sub-item 2

Code Blocks

// JavaScript example
const greet = (name) => {
  console.log(`Hello, ${name}!`);
};




# Table Example

| Name      | Age | Location      |
|-----------|-----|----------------|
| John Doe  | 25  | New York      |
| Jane Doe  | 30  | Los Angeles   |
| Alice Lee | 28  | Chicago        |
| Bob Ross  | 35  | San Francisco  |

---

## Table with Alignment

| Left Aligned | Center Aligned | Right Aligned |
|--------------|:---------------:|---------------:|
| Text 1       |   Center Text   |        Right  |
| Text 2       |   Center Text   |        Right  |
| Text 3       |   Center Text   |        Right  |

---

## Table with Multi-line Content

| Feature         | Description                    |
|-----------------|--------------------------------|
| **MDX Support** | Supports markdown and JSX.    |
| **Tables**      | Use tables for structured data.|

---

## Table with Headers and Footers

| **Product** | **Price** | **In Stock** |
|-------------|------------|---------------|
| Laptop      | $1000     | ✅            |
| Smartphone  | $800      | ❌            |
| Tablet      | $500      | ✅            |