Markdown viewer

Read Markdown the way a specification sheet reads.

A single page that renders Markdown as you paste it. Everything runs in your browser: no upload, no account, no server.

Viewer

157 words

Preview

Markdown viewer

Paste Markdown into the Source pane, or drop a .md file onto either pane. Everything renders locally in your browser: nothing is uploaded.

Formatting

Text can be emphasized, italicized, struck through, or inline code. Links look like example.com.

Blockquotes render with a hairline rule.

Lists

  • Unordered items
  • With a second entry
    • And a nested one
  1. Ordered items
  2. Work the same way
  • Task lists render checkboxes
  • Including unchecked ones

Code

type Viewer = {
  source: string;
  onSourceChange: (next: string) => void;
};

export function render({ source }: Viewer) {
  return source.trim().length > 0;
}

Tables

TokenValueRole
Vellum#f0efe9Page canvas
Carbon Warm#322d2aText and borders
Onyx Depth#0f0e12Darkest surface

Images render with the 80px radius:

Placeholder

Input and syntax

Paste

Paste into the Source pane and the preview updates as you type.

Drop a file

Drag a .md, .markdown, or .mdx file onto either pane to load it.

GitHub flavored

It renders tables, task lists, strikethrough, and fenced code.