A comprehensive test file for all GitHub-flavored markdown features supported by peekmd.
Regular paragraph text with bold, italic, bold italic, and strikethrough text.
You can also use bold and italic with underscores.
Inline code looks like this.
- Regular link
- Link with title
- Autolink: https://example.com
- Email autolink: contact@example.com
Images (these won't load, just testing syntax):
- Item 1
- Item 2
- Nested item 2.1
- Nested item 2.2
- Deep nested 2.2.1
- Item 3
- First item
- Second item
- Nested item 2.1
- Nested item 2.2
- Third item
- Completed task
- Incomplete task
- Another completed task
- Nested incomplete
- Nested complete
This is a blockquote. It can span multiple lines.
Nested blockquotes:
This is nested
And even deeper
Note
Useful information that users should know, even when skimming content.
Tip
Helpful advice for doing things better or more easily.
Important
Key information users need to know to achieve their goal.
Warning
Urgent info that needs immediate user attention to avoid problems.
Caution
Advises about risks or negative outcomes of certain actions.
function greet(name) {
console.log(`Hello, ${name}!`);
return true;
}
const result = greet("World");interface User {
id: number;
name: string;
email?: string;
}
function createUser(data: Partial<User>): User {
return { id: Date.now(), name: "Anonymous", ...data };
}def fibonacci(n: int) -> list[int]:
"""Generate Fibonacci sequence up to n terms."""
fib = [0, 1]
for _ in range(2, n):
fib.append(fib[-1] + fib[-2])
return fib[:n]
print(fibonacci(10))#!/bin/bash
echo "Hello from bash!"
for i in {1..5}; do
echo "Count: $i"
done{
"name": "peekmd",
"version": "2.0.0",
"dependencies": {
"markdown-it": "^14.0.0"
}
}- const old = "removed";
+ const new = "added";
const unchanged = "same";This is a plain code block
with no syntax highlighting.
| Name | Age | Role |
|---|---|---|
| Alice | 30 | Developer |
| Bob | 25 | Designer |
| Charlie | 35 | Manager |
| Left | Center | Right |
|---|---|---|
| L1 | C1 | R1 |
| L2 | C2 | R2 |
| L3 | C3 | R3 |
| Feature | Status | Notes |
|---|---|---|
| Bold | code |
link |
| Italic | Normal |
Here's a sentence with a footnote1.
Another sentence with a different footnote2.
Ctrl + C to copy.
subscript and superscript
Highlighted text
Click to expand
This content is hidden by default.
- Hidden item 1
- Hidden item 2
const hidden = "code";This one starts open
You can see this content immediately.
graph TD
A[Start] --> B{Is it working?}
B -->|Yes| C[Great!]
B -->|No| D[Debug]
D --> B
C --> E[End]
sequenceDiagram
participant Browser
participant Server
participant Database
Browser->>Server: HTTP Request
Server->>Database: Query
Database-->>Server: Results
Server-->>Browser: HTTP Response
pie title Languages Used
"JavaScript" : 45
"TypeScript" : 30
"Python" : 15
"Other" : 10
- Non-empty item
- Ampersand: &
- Less than: <
- Greater than: >
- Quote: "
- Apostrophe: '
- Backtick in code:
`code`
This is a very long paragraph that should wrap properly in the preview. Lorem ipsum dolor sit amet, consectetur adipiscing elit. Sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat.
*Not italic* *Not bold* [Not a link](url) `Not code`
End of kitchen sink test file.