Markdown Formatter & Previewer

Format and preview Markdown. Uses the browser (marked.js) for rendering and DOMPurify to sanitize output when requested.

How to use

  1. Paste or write Markdown into the Markdown Input box.
  2. Toggle Live Preview to update the preview automatically while typing, or click Render to update manually.
  3. Enable Sanitize Output to remove any unsafe HTML from rendered output (recommended for untrusted input).
  4. Use Copy HTML or Download HTML to export the rendered HTML, or Copy Markdown to copy the raw Markdown.

Notes: This uses the browser's JavaScript libraries. For advanced parsing options, I can add toggles for GitHub-flavored Markdown or custom renderer hooks.