Add markdown test document covering common syntax features

This commit is contained in:
Chris Wanstrath 2026-02-20 08:55:04 -08:00
parent 3e423a3b37
commit 1f6c392167

116
test/MARKDOWN.md Normal file
View File

@ -0,0 +1,116 @@
# Test Markdown Document
This document exercises a variety of Markdown features for testing purposes.
## Inline Formatting
This is **bold**, this is *italic*, and this is ***bold italic***.
Here is `inline code` and ~~strikethrough~~ text.
## Links and Images
- [Example Link](https://example.com)
- [Link with title](https://example.com "Example Title")
- ![Alt text for image](https://via.placeholder.com/150)
## Lists
### Unordered
- Item one
- Item two
- Nested item A
- Nested item B
- Deep nested
- Item three
### Ordered
1. First
2. Second
3. Third
1. Sub-item
2. Sub-item
### Task List
- [x] Completed task
- [ ] Incomplete task
- [ ] Another incomplete task
## Blockquotes
> This is a blockquote.
>
> > This is a nested blockquote.
## Code Blocks
Inline: `console.log("hello")`
Fenced with language:
```typescript
function greet(name: string): string {
return `Hello, ${name}!`;
}
```
Fenced without language:
```
plain code block
no syntax highlighting
```
Indented code block:
four spaces
makes a code block
## Tables
| Left | Center | Right |
|:-----|:------:|------:|
| A1 | B1 | C1 |
| A2 | B2 | C2 |
| A3 | B3 | C3 |
## Horizontal Rules
---
***
___
## HTML (inline)
<details>
<summary>Click to expand</summary>
Hidden content inside a details block.
</details>
## Escapes and Special Characters
\*not italic\* and \`not code\`
Ampersand: &amp; | Less than: &lt; | Greater than: &gt;
## Footnotes
Here is a sentence with a footnote[^1].
[^1]: This is the footnote content.
## Heading Levels
### H3
#### H4
##### H5
###### H6