Streamdown-Svelte Playground

Markdown Input
Streamdown-Svelte Output

Streamdown-Svelte Feature Showcase

This playground demonstrates every feature supported by Streamdown-Svelte.


Text Formatting

Regular paragraph text with bold, italic, bold italic, and strikethrough formatting. You can also use inline code within text.


Headings

Heading 1

Heading 2

Heading 3

Heading 4

Heading 5
Heading 6

Links and Images

Visit or paste a raw URL like and it becomes a link automatically.

Streamdown-Svelte logo

Blockquotes

This is a blockquote. It supports formatting and emphasis inside.

Blockquotes can also be nested.


Lists

Unordered Lists

  • First item
  • Second item
    • Nested item
      • Deeply nested item
  • Third item

Ordered Lists

  1. First step
  2. Second step
    1. Sub-step A
    2. Sub-step B
  3. Third step

Task Lists

  • Completed task
  • Also completed
  • Pending task
    • Nested completed task
    • Nested pending task

Tables

FeatureStatusNotes
MarkdownSupportedCommonMark compliant
GFMSupportedTables, tasks, strikethrough
Code highlightingSupported200+ languages via Shiki
MathSupportedKaTeX rendering
MermaidSupportedFlowcharts, sequences, and more
CJKSupportedChinese, Japanese, Korean

Code

Inline code renders within text. Block code gets syntax highlighting:

typescript
interface User {  id: string;  name: string;  email: string;}
async function fetchUser(id: string): Promise<User> {  const response = await fetch(`/api/users/${id}`);
  if (!response.ok) {    throw new Error("Failed to fetch user");  }
  return response.json();}
python
def fibonacci(n: int) -> list[int]:    """Generate the first n Fibonacci numbers."""    sequence = [0, 1]    for _ in range(2, n):        sequence.append(sequence[-1] + sequence[-2])    return sequence[:n]
print(fibonacci(10))
css
:root {  --primary: #0070f3;  --background: #ffffff;}
.container {  display: grid;  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));  gap: 1.5rem;  padding: 2rem;}
bash
# Install Streamdown-Sveltenpm install streamdown-svelte @streamdown-svelte/code @streamdown-svelte/math @streamdown-svelte/mermaid

Mathematics

Inline math: E = mc^2 and \sum_{i=1}^{n} i = \frac{n(n+1)}{2}.

Block math for display equations:

\int_{-\infty}^{\infty} e^{-x^2} \, dx = \sqrt{\pi}
\begin{bmatrix}
a & b \\
c & d
\end{bmatrix}
\begin{bmatrix}
x \\
y
\end{bmatrix}
=
\begin{bmatrix}
ax + by \\
cx + dy
\end{bmatrix}
f(x) = \begin{cases}
x^2 & \text{if } x \geq 0 \\
-x^2 & \text{if } x < 0
\end{cases}

Mermaid Diagrams

Flowchart

mermaid
graph TD    A[Start] --> B{Is it working?}    B -->|Yes| C[Great!]    B -->|No| D[Debug]    D --> B    C --> E[Ship it]

Sequence Diagram

mermaid
sequenceDiagram    participant Client    participant Server    participant Database    Client->>Server: POST /api/data    Server->>Database: INSERT query    Database-->>Server: Success    Server-->>Client: 201 Created

State Diagram

mermaid
stateDiagram-v2    [*] --> Idle    Idle --> Loading: fetch()    Loading --> Success: 200 OK    Loading --> Error: 4xx/5xx    Error --> Loading: retry()    Success --> Idle: reset()

Vega-Lite Charts (Custom Renderer)

vega-lite Custom Renderer

A bar chart showing monthly revenue.

Revenue ($k)

Jan

28

Feb

55

Mar

43

Apr

91

May

81

Jun

53


CJK Support

Chinese: 你好世界。 Streamdown-Svelte 支持中文排版。

Japanese: こんにちは。 Streamdown-Svelte は日本語をサポートしています。

Korean: 안녕하세요. Streamdown-Svelte는 한국어를 지원합니다.


Horizontal Rules

Three dashes create a horizontal rule:


HTML Entities

© 2025 — Streamdown-Svelte • Built with ♥