Skip to main content

Markdown Editor

Runs locally

Split live GFM Markdown editor with DOMPurify sanitization, TOC, word stats and HTML/PDF export.

What is Markdown Editor?

Write GitHub Flavored Markdown with a synchronized split live preview sanitized via DOMPurify. Generate tables, auto-extract a Table of Contents, track word count and reading time, start from README templates, and export clean HTML or print-ready PDF.

How to use Markdown Editor

  1. Step 1

    Write Markdown in the editor or pick a README template from the sample dropdown.

  2. Step 2

    Use toolbar helpers to insert headings, tables, task lists, or fenced code blocks.

  3. Step 3

    Switch between Preview, Sanitized HTML Output, and Table of Contents views.

  4. Step 4

    Copy Markdown/HTML, download .md/.html, or print to PDF.

Features

  • GitHub Flavored Markdown (tables, task lists, strikethrough, autolinks)
  • DOMPurify HTML sanitization on live preview to prevent XSS
  • Automatic Table of Contents generator with anchor slugs
  • Word count, character count, and reading time estimates
  • Starter templates for Open Source, API, CLI, Android, iOS, and ML READMEs
  • Export standalone styled HTML or trigger print-stylesheet PDF

Example

Input

# NexaTools

- [x] Runs locally
- [x] **Sanitized** preview

Output

<h1>NexaTools</h1>
<ul>
  <li><input checked disabled type="checkbox"> Runs locally</li>
  <li><input checked disabled type="checkbox"> <strong>Sanitized</strong> preview</li>
</ul>

Renders GFM task lists and inline formatting into clean sanitized HTML.

Frequently asked questions

Is the live HTML preview sanitized?

Yes. Rendered HTML is passed through DOMPurify before display.

Can I export a standalone HTML page or PDF?

Yes. Use Download HTML for a clean document or Export PDF to print with a clean stylesheet.

Are my notes saved or uploaded?

Everything stays in your browser; nothing is sent to a server.

Does it support GFM tables and task lists?

Yes, GitHub Flavored Markdown tables and checkboxes are supported.