How Markdown Preview Works
AnyTool renders Markdown to HTML in the browser with a fast GitHub-Flavored Markdown parser, supporting tables, task lists, strikethrough, fenced code, and footnotes. Rendered output is sanitized with DOMPurify before injection to prevent XSS, code blocks are syntax-highlighted, and the preview updates live with a short debounce. Export to PDF uses the browser print pipeline for crisp vector text, and HTML export inlines styles — all generated client-side with no server render step.
- GitHub-Flavored Markdown with live split-pane preview
- Syntax highlighting in code blocks
- DOMPurify sanitization of rendered HTML (XSS-safe)
- Export to HTML and PDF entirely in-browser
- Local autosave; no upload, no account, no AI calls
