Skip to main content
Text Utilities

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.

Sanitized Preview (raw HTML & scripts disabled)

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
FeatureDefault BehaviorExport
Scripts / handlersStripped / inert textSanitized HTML
External imagesBlocked placeholderOpt-in toggle
export function greet(name: string): string {
  return `Hello, ${name}`;
}

Blocked remote image (External preview image): https://example.com/demo-architecture.png

Tool Documentation & Guide

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

1Compose or Paste Markdown

Write Markdown in the left editor or upload a local .md document from your computer.

2Review Live Formatted Preview

The right pane renders headers, blockquotes, code blocks, tables, and task lists in real time.

3Export as Markdown or HTML

Download the raw .md file or sanitized .html document, or copy the formatted HTML directly to your clipboard.

Supported Markdown Syntax
  • 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.
Document Confidentiality
  • Draft documents are edited in local memory with zero cloud syncing.
  • Sanitization protects against XSS injection attacks in untrusted markdown pastes.