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

  1. ordered item 1
  2. ordered item 2
  3. ordered item 3

Code Blocks

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-copy
echo "hello markdown viewer"
cat /etc/os-release | grep PRETTY_NAME
def 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

Markdown Logo


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

  1. First item with a link: https://www.cloudflare.com
  2. Second item with inline code and bold text
  3. Third item with deprecated mark

Final quote with OpenAI