Online Markdown Editor & Live Preview
Write documentation, GitHub READMEs, and clean notes with a fast, distraction-free Markdown editor: desktop split-pane preview with scroll sync, mobile tab switcher, formatting toolbar, strict XSS-safe GFM rendering, local auto-save, and instant .md / .html export.
⚡ Quick Answer
DayToolHub Markdown Editor runs 100% locally in your browser with GitHub Flavored Markdown support (headings, emphasis, strikethrough, code blocks, tables, task lists, links & images), strict XSS sanitization blocking raw scripts and javascript:/data: URLs, automatic localStorage drafts, and one-click .md / standalone .html export.
How to Use Markdown Editor
- Type Markdown in the editor or use the formatting toolbar to insert headings, bold/italic text, checklists, code blocks, links, and tables.
- Switch between Split View, Editor Only, or Preview Only on desktop (with synchronized scrolling), or flip between Edit and Preview tabs on mobile.
- Track live character count, word count, line count, and estimated reading time while your draft saves automatically to localStorage.
- Use Copy HTML, Export .md, or Export Standalone .html whenever your document is ready.
GitHub Flavored Markdown (GFM) Quick Cheat Sheet
| Element | Markdown Syntax | Notes |
|---|---|---|
| Headings | # H1 / ## H2 / ### H3 | Leave one space after the hashes |
| Emphasis | **bold**, *italic*, ~~strike~~ | Can be combined inline |
| Task Lists | - [x] Done / - [ ] Todo | Renders clean checklist items |
| Code Blocks | Triple backticks ```js ... ``` | Preserves indentation and escapes brackets |
| Tables | Pipe-delimited rows with --- separator | Supports left, center, and right alignment |
| Links & Images | [Label](https://...) /  | External links include safe rel attributes |
Why XSS-Safe Markdown Rendering Matters
Many web previewers inject raw HTML straight into the page, allowing pasted <script> tags, onerror handlers, or javascript: links to execute unintended code. DayToolHub escapes all raw HTML and enforces a strict URL allowlist (https:, http:, mailto:, and relative paths) so previewing untrusted Markdown stays completely safe.
Frequently Asked Questions (FAQ)
Will I lose my writing if I refresh or close the tab?
Does it support GFM tables and checkbox task lists?
Is it safe to paste untrusted Markdown containing HTML or scripts?
<script>, <iframe>, and <img onerror=...> as literal text and blocks javascript:, vbscript:, and data: URLs.