Markdown Editor & Sanitized Preview
Preview GitHub Flavored Markdown cleanly in your browser with remote images blocked by default and export sanitized HTML or .md files.
Draftsbook GFM Preview
Write GitHub Flavored Markdown with live sanitized preview and export.
Features
- Headings, lists, blockquotes, and task checkboxes
- Tables & fenced code blocks
- Remote images blocked by default for privacy
| Feature | Default Behavior | Export |
|---|---|---|
| Scripts / handlers | Stripped / inert text | Sanitized HTML |
| External images | Blocked placeholder | Opt-in toggle |
export function greet(name: string): string {
return `Hello, ${name}`;
}
Blocked remote image (External preview image): https://example.com/demo-architecture.png
Markdown Editor & GFM Preview Guide
Edit GitHub Flavored Markdown (GFM) with split-pane live preview and sanitized HTML export.
Overview
The Markdown Preview tool provides a split-screen editor and real-time renderer for GitHub Flavored Markdown (GFM). It includes tables, task lists, code block syntax highlighting, and sanitized HTML output with remote image blocking by default to protect user privacy.
How to Edit and Preview Markdown
Write Markdown in the left editor or upload a local .md document from your computer.
The right pane renders headers, blockquotes, code blocks, tables, and task lists in real time.
Download the raw .md file or sanitized .html document, or copy the formatted HTML directly to your clipboard.
- GitHub Flavored Markdown (GFM): tables, task lists, strikethrough, autolinks.
- Sanitized HTML rendering: scripts, iframes, and dangerous handlers are strictly stripped.
- Remote external images blocked by default with user opt-in toggle.
- Draft documents are edited in local memory with zero cloud syncing.
- Sanitization protects against XSS injection attacks in untrusted markdown pastes.