Skip to content

Instantly share code, notes, and snippets.

@arenagroove
Last active December 4, 2025 15:11
Show Gist options
  • Select an option

  • Save arenagroove/3ea3916843bc0d0a3b2e3da5dc7aff70 to your computer and use it in GitHub Desktop.

Select an option

Save arenagroove/3ea3916843bc0d0a3b2e3da5dc7aff70 to your computer and use it in GitHub Desktop.
CodePen Home ChatGPT → Markdown

Complex markdown example

Exported: 2025-12-04T14:30:38.438Z Source: https://chatgpt.com/share/69319b44-a904-8005-a2f5-72da3bd8cbd8


User (1)

Create a complex message that includes:

  1. Headers (h1 through h6)
  2. Bold and italic text
  3. Nested lists:
    • Item 1
      • Nested item
        • Deep nested
    1. Ordered
      1. Nested ordered
  4. Code blocks in multiple languages:
python
   def hello():
       return "world"
javascript
   const x = `backticks`;
  1. Inline code with backticks
  2. Tables:
    Column 1 Column 2
    Data More
  3. Blockquotes:

    This is quoted Multiple lines

  4. Math/LaTeX: $E = mc^2$ and display math: $$ \int_0^\infty e^{-x^2} dx = \frac{\sqrt{\pi}}{2} $$
  5. Links and images: text alt
  6. Horizontal rules
  7. Mixed formatting: bold with italic inside and code in **bold**
  8. Special characters: `*_{}[]()#+-.! ` Make it as complex as possible to test markdown export.

Assistant (2)

Here is a deliberately dense, edge-case–heavy Markdown stress test that includes everything you asked for.


H1 — Primary Title

H2 — Section Heading

H3 — Subsection

H4 — Minor Heading

H5 — Small Heading
H6 — Micro Heading

This paragraph includes bold text, italic text, bold + italic together, and also mixed nesting like bold with italic inside.

Here is inline code with backticks, plus this tricky case: code in **bold**.


Nested Lists (Mixed Ordered & Unordered)

  • Item 1

    • Nested item

      • Deep nested
  • Item 2

    • Another nested level

      • Yet another layer

        • Depth achieved
  1. Ordered

  2. Nested ordered

1. Deep nested ordered
  1. Second nested item
  2. Second top-level ordered item

Code Blocks (Multiple Languages)

def hello():
    return "world"
const x = `backticks`;
const message = "This string has **bold-like** characters";
:root {
  --primary-color: #f28a3d;
}
div::before {
  content: "→ CSS test";
}
<section class="test">
  <h1>HTML Block</h1>
  <p>Inline <code>code</code> inside HTML.</p>
</section>

Tables

Column 1 Column 2 Column 3
Data More Even More
Bold Italic Code
123 456 789

Blockquotes

This is quoted

Multiple lines

With bold, italic, and inline code

Nested blockquote level

Still going


Math / LaTeX

Inline math:

$E = mc^2$

Display math:

$$ \int_0^\infty e^{-x^2} dx = \frac{\sqrt{\pi}}{2} $$

More math for stress testing:

$$ \sum_{n=1}^{\infty} \frac{1}{n^2} = \frac{\pi^2}{6} $$


Links and Images

Standard link:

text

Image reference (intentional placeholder):

alt

Reference-style link:

text-ref


Horizontal Rules





Mixed Formatting Torture Zone

  • Bold with italic inside
  • Italic with bold inside
  • Code with *italic-looking* text inside
  • Bold containing inline code inside
  • Code containing **bold-looking** text

Paragraph with everything at once:

This is bold, this is italic, this is code, this is bold with italic inside, and here is code containing **fake bold** markers.


Escaped & Special Characters

Here are escaped and raw special characters for parser testing:

\ ` * _ { } [ ] ( ) # + - . !

Literal output view (without code block):

` * _ { } $$ $$ # + - . !


Deeply Nested Chaos (Final Boss)

  • Level 1

    • Level 2

      1. Ordered inside unordered
      • Unordered inside ordered

        1. Ordered again
        • Even deeper

          • Bold deep

            • Italic deep

              • Code deep

Edge-Case Inline Constructs

  • Backticks inside backticks: \code inside code``
  • Asterisks inside bold: asterisk * inside
  • Underscores inside italics: underscore _ inside
  • Brackets in links: text with [brackets]
  • Parentheses in URLs: test

End of complex Markdown stress test.

User (3)

Thanks

Assistant (4)

Anytime. That was a fun little stress test for the markup engine, full contact sport for parsers everywhere.

@arenagroove
Copy link
Author

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment