Markdown Preview

Edit Markdown with a live rendered preview

Table of Contents

Markdown Input

676 chars
6 headings

Preview

Getting Started

Welcome to the Markdown Preview tool. Edit on the left, see the result on the right in real time.

Features

GFM Tables

Feature Supported
Tables
Task lists
Strikethrough
Fenced code

Task Lists

  • GFM rendering with marked
  • XSS sanitization via DOMPurify
  • TOC auto-generation
  • Coming soon: sync scroll

Strikethrough

This text is crossed out.

Code

Inline code and fenced blocks:

const msg = 'Hello, world!'
console.log(msg)

Tip: Toggle the TOC switch above to see the table of contents.

Visit idcd.com

Usage Tips

Full GFM support: tables, task lists (- [x]), strikethrough (~~text~~), fenced code blocks (```), and autolinks.

Toggle the TOC switch to show a clickable table of contents generated from your h1–h3 headings.

Export to .html (self-contained with inline styles) or .md, or copy the raw HTML source.

All output is sanitized by DOMPurify — scripts and event handlers are stripped before rendering.