Markdown Syntax Playground
Headings
H3 Example
H4 Example
Paragraph / Emphasis / Inline Code
This is a normal paragraph with italic, bold, strikethrough and inline code.
Auto link example: https://example.com/docs?q=markdown
Markdown link: GitHub
Blockquote
This is a blockquote line. This is the second line in the same quote block.
Lists
- unordered item A
- nested unordered item A1
- nested unordered item A2
- nested unordered item A3
- unordered item B
- nested unordered item B1
- nested unordered item B2
- nested unordered item B3
- unordered item C
- ordered item 1
- ordered item 2
- ordered item 3
Code Blocks
curl -sSL https://example.com- Indented code fence (inside list item):
curl -sSL https://example.com
type User = {
id: number
name: string
}
const user: User = { id: 1, name: "alice" }
console.log(user){
"features": {
"buildkit": true
}
}{
// jsonc alias should highlight as json
"name": "cf-markdown-viewer",
"version": "1.0.0"
}service:
name: markdown-viewer
replicas: 2
features:
- toc
- code-copyecho "hello markdown viewer"
cat /etc/os-release | grep PRETTY_NAMEdef greet(name: str) -> None:
print(f"hello, {name}")
greet("world")package main
import "fmt"
func main() {
fmt.Println("hello world")
}class Main {
public static void main(String[] args) {
System.out.println("hello");
}
}select id, name
from users
where status = 'active'
order by created_at desc;
<div class="card">
<h1>Hello</h1>
<p>Markdown SSR</p>
</div>.card {
border: 1px solid #d0d7de;
border-radius: 6px;
padding: 12px;
}Tables
| Name | Role | Score |
|---|---|---|
| Alice | Admin | 98 |
| Bob | Developer | 88 |
| Carol | QA | 92 |
Image
![]()
LaTeX
Inline math example: , .
Block math example:
Multi-line block math:
Inline HTML
This line uses inline HTML tags: blue text, bold red text, highlighted text, Ctrl + C.
Inline HTML mixed with markdown:
markdown bold + html underline + inline code.
Mixed Content
- First item with a link: https://www.cloudflare.com
- Second item with
inline codeand bold text - Third item with
deprecatedmark
Final quote with OpenAI