5.8 KiB
5.8 KiB
Markdown Combinations Test
This file tests all possible combinations of markdown elements.
1. Lists with Text Formatting
Bold in List
- Bold item 1
- Bold item 2 with more text
- Bold item 3 and italic and
code
Italic in List
- Italic item 1
- Italic item 2 with text
- Italic and bold together
Code in List
inline codeitem- Code with
const x = 1variable - Command
npm install
Mixed Formatting in List
- Bold and italic and
codeall together - Bold italic with normal text
Strikethroughand bold- ==Highlighted== and italic
2. Headings in Lists
-
Heading 3 in list
-
Heading 4 in list
-
Heading 5 in list
-
Heading 3 in ordered list
-
Heading 4 in ordered list
-
Heading 5 in ordered list
3. Blockquotes with Lists
Blockquote with list:
- Item 1
- Item 2
- Item 3
Bold blockquote with list:
- First
- Second
- Third
Italic blockquote with
code:
- Item with
inline code- Another with bold
4. Lists in Blockquotes
This is a blockquote with a nested list:
- First level
- Second level
- Third level
- Fourth level
- Back to first
Another blockquote with mixed content:
- Bold item
- Italic item
Code item- Link item
5. Links in Various Elements
Links in Lists
- Link in list
- Link with title in list
- Reference link in list
Links in Blockquotes
Links in Code
<a href="https://example.com">Link</a>in list[link](url)as code
6. Images in Various Elements
Images in Lists
Images in Blockquotes
7. Code Blocks with Formatting
Code Block with Bold/Italic
**This is bold in code**
*This is italic in code*
`inline code in code block`
Code Block Inside List
-
// Code block in list const x = 1; - Another item
8. Tables with Formatting
| Header | Bold Header | Italic Header |
|---|---|---|
| Cell | Bold Cell | Italic Cell |
Code |
Bold + code |
Italic + code |
9. Nested Lists with All Formatting
- Level 1 bold
- Level 2 italic
- Level 3
code- Level 4
strikethrough- Level 5 ==highlight==
- Level 4
- Level 3
- Level 2 italic
- Ordered 1 bold
- Ordered 1.1 italic
- Ordered 1.1.1
code
- Ordered 1.1.1
- Ordered 1.1 italic
10. Complex Combinations
Blockquote > List > Blockquote
- Item 1
Nested blockquote With bold
- Item 2
List > Blockquote > List
- Item 1
Blockquote inside list With italic
- Item 2
List > Code > List
- Item 1
// Code block nested const x = 1; - Item 2
Task List with Formatting
- Completed task with italic
- Incomplete with
code - ==Highlighted== and bold and italic
11. Heading + List Combinations
Heading followed by formatted list
Subheading
- Bold item
- Italic item
Code item
Multiple headings in sequence
Section 1
- Item 1
- Item 2
Section 2
- Ordered 1
- Ordered 2
Heading within list (edge case)
- Normal item
-
Not a heading (just text)
- Normal item
12. Links + Code + Bold + Italic combinations
- Bold link
- Italic link
Code link- Link with
codeand italic - All combined with
more code
13. Tables + Lists combinations
| Table | With | Formatting |
|---|---|---|
| - List in table | - Another | - Item |
| Bold | Italic | Code |
- Table below list:
| Col1 | Col2 |
|---|---|
| A | B |
- List below table:
Col1 Col2 C D
14. All Elements in One Paragraph
This is a paragraph with bold, italic, bold italic, inline code, a link,
, strikethrough, ==highlight==, and ^superscript^, all in one paragraph. It's quite long and should test how your renderer handles multiple formatting elements combined.
15. Edge Case: Empty Elements
- Item after empty
Empty blockquote
16. Deep Nesting
- Level 1
- Level 2
- Level 3
- Level 4
- Level 5
- Level 6
- Deep bold
- Deep italic
Deep code
- Level 6
- Level 5
- Level 4
- Level 3
- Level 2
17. Code Blocks with Language and Formatting
// JavaScript with **fake bold** (just text)
const greet = (name) => {
return `Hello, ${name}!`; // Template literal
};
# Python with *italic* comments
def hello():
"""Docstring with **bold**"""
return "Hello"
<!-- HTML comment with **bold** -->
<div class="container">
<p>Paragraph with *italic*</p>
</div>
18. Final Complex Example
Blockquote Heading
This is a blockquote that contains:
- A bold list item
- An italic list item
- A
codelist item- A link item
And then continues with more text that has bold, italic, and
codeformatting.It also has a nested list:
- First nested bold item
- Second nested italic item
- Third nested
codeitem
This covers virtually every possible combination of markdown elements!
