โจ Markups
January 5, 2026 ยท View on GitHub
โจ Markups
A powerful, free online markdown editor with real-time preview
๐ Live Demo โข ๐ Report Bug โข ๐ก Request Feature
๐ Features
โ๏ธ Editor
- Monaco Editor โ VS Code's powerful editor with IntelliSense
- Syntax Highlighting โ Full markdown syntax support
- Multiple Themes โ VS Light/Dark, Dracula, GitHub, Solarized
- Customizable โ Font size, font family, line numbers, word wrap
๐๏ธ Preview
- Live Preview โ Real-time rendering as you type
- Split View โ Side-by-side editor and preview with resizable divider
- Scroll Sync โ Synchronized scrolling between editor and preview
- Dark/Light Mode โ Automatic theme switching
๐ Markdown Support
- GitHub Flavored Markdown โ Tables, task lists, strikethrough
- KaTeX Math โ LaTeX math equations ( and )
- Mermaid Diagrams โ Flowcharts, sequence diagrams, Gantt charts
- Syntax Highlighting โ Code blocks with Prism.js
- Footnotes โ Reference-style footnotes
- Alerts โ GitHub-style alert blocks
๐ค Export Options
- ๐ Markdown โ Download as .md file
- ๐ PDF โ Export with preserved formatting
- ๐ HTML โ Clean HTML with embedded styles
- ๐ Copy โ Quick copy to clipboard
๐ ๏ธ Advanced Features
- ๐ Multi-Tab Support โ Work on multiple documents
- ๐ Templates โ Pre-built document templates
- โจ๏ธ Snippets โ Quick text insertions
- ๐ฏ Focus Mode โ Distraction-free writing
- โจ๏ธ Typewriter Mode โ Keep cursor centered
- ๐ Statistics โ Word/character/reading time
- ๐ฏ Writing Goals โ Set and track word count goals
- ๐ Table of Contents โ Auto-generated navigation
- ๐ Linting โ Markdown best practices checking
- ๐พ Auto-Save โ Never lose your work
- ๐ฑ PWA Support โ Install as desktop/mobile app
๐ฅ๏ธ Demo
Try it live at markdownlivepreview.com
๐ Quick Start
Prerequisites
- Node.js 18.0 or higher
- npm 9.0 or higher
Installation
# Clone the repository
git clone https://github.com/Nir-Bhay/markdown-live-preview.git
# Navigate to directory
cd markdown-live-preview
# Install dependencies
npm install
# Start development server
npm run dev
Open http://localhost:5173 in your browser.
๐ฆ Build
# Create production build
npm run build
# Preview production build
npm run preview
The build output will be in the dist/ folder.
๐ Deployment
Deploy to Vercel (Recommended)
Or manually:
- Push your code to GitHub
- Import your repository on Vercel
- Vercel auto-detects Vite and deploys
Build Settings:
| Setting | Value |
|---|---|
| Framework | Vite |
| Build Command | npm run build |
| Output Directory | dist |
Deploy to Netlify
# Install Netlify CLI
npm install -g netlify-cli
# Build and deploy
npm run build
netlify deploy --prod --dir=dist
Deploy to GitHub Pages
# Build the project
npm run build
# Deploy dist folder to gh-pages branch
npx gh-pages -d dist
โจ๏ธ Keyboard Shortcuts
| Action | Windows/Linux | macOS |
|---|---|---|
| Save as Markdown | Ctrl + S | โ + S |
| Export to PDF | Ctrl + P | โ + P |
| Import File | Ctrl + O | โ + O |
| Toggle Dark Mode | Ctrl + D | โ + D |
| Bold | Ctrl + B | โ + B |
| Italic | Ctrl + I | โ + I |
| Insert Link | Ctrl + K | โ + K |
| Heading 1 | Ctrl + 1 | โ + 1 |
| Heading 2 | Ctrl + 2 | โ + 2 |
| Heading 3 | Ctrl + 3 | โ + 3 |
| Toggle Focus Mode | Ctrl + Shift + F | โ + โง + F |
| Open Export Modal | Ctrl + Shift + E | โ + โง + E |
| Fullscreen | F11 | F11 |
| Show Help | Ctrl + H | โ + H |
๐๏ธ Tech Stack
| Technology | Purpose |
|---|---|
| Vite | Build tool & dev server |
| Monaco Editor | Code editor |
| Marked | Markdown parser |
| Mermaid | Diagrams |
| KaTeX | Math equations |
| Prism.js | Syntax highlighting |
| DOMPurify | XSS sanitization |
| html2pdf.js | PDF export |
๐ Project Structure
markdown-live-preview/
โโโ index.html # Main HTML entry
โโโ package.json # Dependencies
โโโ vite.config.js # Vite configuration
โโโ vercel.json # Vercel deployment config
โโโ public/
โ โโโ css/ # Stylesheets
โ โ โโโ premium-ui.css # Main UI styles
โ โ โโโ style.css # Base styles
โ โโโ image/ # Static images
โ โโโ manifest.json # PWA manifest
โ โโโ sw.js # Service worker
โโโ src/
โโโ main.js # Application entry
โโโ config/ # Configuration
โโโ core/ # Core services
โ โโโ editor/ # Monaco editor
โ โโโ markdown/ # Markdown parser
โ โโโ storage/ # LocalStorage
โโโ features/ # Feature modules
โ โโโ tabs/ # Multi-tab support
โ โโโ toc/ # Table of contents
โ โโโ goals/ # Writing goals
โ โโโ ...
โโโ services/ # Services
โ โโโ export/ # Export (PDF, HTML, MD)
โ โโโ shortcuts/ # Keyboard shortcuts
โโโ ui/ # UI components
โ โโโ toast/ # Notifications
โ โโโ modal/ # Modal dialogs
โ โโโ theme/ # Theme management
โโโ utils/ # Utilities
๐ค Contributing
Contributions are welcome! Please follow these steps:
- Fork the repository
- Create your feature branch (
git checkout -b feature/AmazingFeature) - Commit your changes (
git commit -m 'Add AmazingFeature') - Push to the branch (
git push origin feature/AmazingFeature) - Open a Pull Request
๐ License
This project is licensed under the MIT License - see the LICENSE file for details.
๐ Acknowledgments
- Monaco Editor by Microsoft
- Marked for markdown parsing
- Mermaid for diagram support
- KaTeX for math rendering
Made with โค๏ธ by Nir-Bhay
โญ Star this repo if you find it useful!