Markdown Live Editor, Split Previewer & HTML Exporter
Write GitHub Flavored Markdown (GFM) with split live preview, code syntax highlighting, table formatting, and one-click HTML copy.
Markdown Specifications: CommonMark, GFM, & XSS Sanitization
Markdown was created by John Gruber in 2004 to be easy to read and write in plain text while converting smoothly into semantic HTML. Modern software development relies on CommonMark for unambiguous AST parsing and GitHub Flavored Markdown (GFM) for tables, task lists, and autolinking.
Security: DOMPurify Sanitization
Because Markdown allows raw inline HTML tags alongside links and image attributes, rendering untrusted user input without strict allowlist sanitization exposes applications to Stored Cross-Site Scripting (XSS) via inline event handlers and javascript: URIs. Strip disallowed attributes with DOMPurify and enforce rel="noopener noreferrer" on external links before mounting generated markup.
CommonMark vs. GitHub Flavored Markdown
Original Markdown left dozens of edge cases ambiguous, especially nested lists, indented code fences, and underscore emphasis mid-word. CommonMark standardizes precedence rules so parsers produce identical abstract syntax trees across compilers, while GFM extends that specification with pipe tables, strikethrough syntax, task-list checkboxes, and fenced language identifiers for technical READMEs and API documentation.
GFM Table Pipe Escaping
When documenting TypeScript union types like string | number inside a GFM table cell, an unescaped pipe splits the cell into an extra column. Escape literal pipes with \| (or write HTML entities inside code spans carefully) and keep a blank line above and below tables so preceding paragraphs do not swallow the header row.
Nested Fences & Highlighting
Writing Markdown documentation that shows triple-backtick code examples requires wrapping the outer block in four backticks or three tildes (~~~) so the inner closing fence does not terminate parsing prematurely. Always tag fences with explicit language identifiers like tsx, bash, or sql to drive deterministic Prism or Shiki syntax highlighting.
Heading Anchors & Line Breaks
Static site generators slugify headings sequentially, appending numeric suffixes (-1, -2) whenever sections share titles like "Configuration", which can silently break deep links after edits. Avoid trailing two-space hard breaks that formatters trim away; prefer explicit blank lines for paragraphs or reference-style links to keep raw source diffs readable.
About Markdown Live Editor & HTML Converter & Security Considerations
Everything you need to know about how this utility processes data safely in your browser.
What is GitHub Flavored Markdown (GFM)?
GFM extends standard Markdown with support for tables, strike-through text, auto-linked URLs, and task checkboxes.
Can I export formatted Markdown directly to HTML?
Yes, our editor parses markdown and exports clean semantic HTML with one click.
How do I create clickable task list checkboxes in GitHub Markdown?
Use hyphen space brackets: - [ ] for unchecked items and - [x] for checked items. In GitHub issues and pull requests, these render as interactive checkboxes.
What is the syntax for syntax-highlighted code blocks in Markdown?
Use triple backticks followed immediately by the language identifier (e.g. ` ypescript, `python, `sql). Modern Markdown renderers use this identifier for Prism or Highlight.js AST token coloring.