A powerful, feature-rich web application that allows you to write Markdown and see a live preview of the rendered HTML, with support for advanced features like math equations and diagrams.
- Live Preview: See changes as you type with real-time rendering
- Complete Markdown Support:
- Headers (H1-H6)
- Emphasis (bold, italic, strikethrough)
- Lists (ordered and unordered)
- Links
- Images
- Blockquotes
- Code blocks with syntax highlighting
- Tables
- Task lists
- Horizontal rules
- HTML support
- Advanced Authoring:
- Mathematical equations via KaTeX
- Diagrams and flowcharts with Mermaid.js
- Code syntax highlighting via Highlight.js
- Rich Editing Tools:
- Organized formatting toolbar with grouped controls
- Word and character counter
- Interactive task lists (checkboxes work in preview!)
- Word wrap toggle
- Spell check toggle
- Modern UI:
- Dark/light theme toggle
- Fullscreen mode
- Focus mode for distraction-free writing
- Responsive design for all devices
- Beautiful animations and transitions
- Loading overlay for intensive operations
- File Operations:
- Auto-save to local storage
- Import files via drag & drop or file picker
- Copy markdown to clipboard
- Copy generated HTML to clipboard
- Export to multiple formats:
- Markdown (.md)
- HTML (.html)
- PDF (.pdf) with optimized rendering
- Preview Controls:
- Toggle between different preview modes (split view, preview focused, preview only)
- Table of Contents navigation with automatic highlighting
- Productivity Features:
- Keyboard shortcuts for common actions
- Shortcuts guide/cheatsheet
- Performance optimizations for large documents
- Security Features:
- HTML sanitization to prevent XSS attacks
- Open
index.htmlin your web browser - Type or paste Markdown in the left panel
- See the rendered HTML in the right panel
- Use the toolbar buttons to quickly insert common Markdown elements
- Import existing files by dragging them onto the page
- Export your work as Markdown, HTML, or PDF
- Use keyboard shortcuts (press the keyboard icon to see all shortcuts)
- Try focus mode for distraction-free writing
- Toggle spell check on/off as needed
- Your content is automatically saved to your browser's local storage
No server or internet connection required! Everything runs locally in your browser.
Use $ for inline math and triple backticks with the "math" language for block equations:
Inline: $E = mc^2$
Block:
```math
\frac{d}{dx}\left( \int_{0}^{x} f(u)\,du\right)=f(x)
## Diagrams
Create diagrams using triple backticks with the "mermaid" language:
graph TD
A[Start] --> B{Is it working?}
B -->|Yes| C[Great!]
B -->|No| D[Debug]
D --> B
## Table of Contents
Create a table of contents for your document by adding:
[TOC]
The TOC will be automatically generated from your document's headings. You can also toggle the sidebar TOC using the list icon in the header or by pressing Ctrl+T.
This Markdown Previewer includes several performance enhancements:
- Debounced rendering to avoid lag during typing
- Parallel processing of rendering tasks
- Optimized PDF export
- Efficient TOC generation
- Loading overlays for intensive operations
- HTML5
- CSS3 with CSS Variables for theming
- JavaScript (ES6+)
- Marked.js - Markdown parser and compiler
- DOMPurify - HTML sanitizer to prevent XSS
- highlight.js - Syntax highlighting for code blocks
- KaTeX - Math equation rendering
- Mermaid.js - Diagram and flowchart rendering
- html2pdf.js - PDF export
- Font Awesome - Icons for the UI
MIT