A lightweight, browser-based Markdown-to-HTML editor with live preview, syntax highlighting, and export functionality.
Built with HTML, CSS, and Vanilla JavaScript (no frameworks).
Live Deme: https://iabhi-me.github.io/marklive
- 📝 Live Preview — Type Markdown on the left, see HTML on the right instantly.
- 🎨 Light/Dark Theme — Persistent theme preference (auto-detects system theme).
- 📋 Editor Controls — Buttons for headings, bold, italic, lists, code, etc.
- 💾 Auto-Save — Content is saved to localStorage automatically.
- 🔄 Undo/Redo — Built-in undo/redo stack (Ctrl/Cmd+Z, Ctrl/Cmd+Y).
- 📑 Markdown Extensions:
- Headings, bold, italic
- Links & images (including drag & drop for images, saved as Base64)
- Blockquotes & horizontal rules
- Inline code & fenced code blocks (with Prism.js syntax highlighting)
- Ordered/unordered lists
- Task lists (
- [ ]/- [x]) - Tables (GitHub-style parsing)
- Superscripts & footnotes
- Emoji shortcodes (
:smile:,:rocket:, etc.)
- ⚡ Export Options:
- Copy rendered HTML to clipboard
- Export as standalone
.htmlfile
- 🔍 Preview-Only Mode — Hide editor for distraction-free preview.
git clone https://github.com/yourusername/markdown-live-preview.git
cd markdown-live-previewJust open index.html in your browser — no build tools required.
Type Markdown into the editor panel, and see the preview update live.
(You can add screenshots here showing light mode, dark mode, and live preview in action.)
- HTML5 — Structure
- CSS3 (Custom Properties, Responsive Design) — Styling & dark/light themes
- Vanilla JavaScript — Markdown parsing, autosave, undo/redo, image handling
- Prism.js — Code syntax highlighting
.
├── index.html # Main HTML page
├── style.css # Styles (light/dark mode, preview, tables, etc.)
└── script.js # Markdown parser, editor logic, autosave, themes
- Support for custom CSS themes
- Export to Markdown + PDF
- Collaborative editing via WebSockets
- Plugin system for extra Markdown features
MIT License © 2025 Abhinav