โœจ Markups

January 5, 2026 ยท View on GitHub

โœจ Markups

A powerful, free online markdown editor with real-time preview

Deploy with Vercel MIT License Vite Monaco Editor

๐ŸŒ Live Demo โ€ข ๐Ÿ› Report Bug โ€ข ๐Ÿ’ก Request Feature

Markups Screenshot


๐Ÿš€ 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 (inlineinline and blockblock)
  • 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 with Vercel

Or manually:

  1. Push your code to GitHub
  2. Import your repository on Vercel
  3. Vercel auto-detects Vite and deploys

Build Settings:

SettingValue
FrameworkVite
Build Commandnpm run build
Output Directorydist

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

ActionWindows/LinuxmacOS
Save as MarkdownCtrl + SโŒ˜ + S
Export to PDFCtrl + PโŒ˜ + P
Import FileCtrl + OโŒ˜ + O
Toggle Dark ModeCtrl + DโŒ˜ + D
BoldCtrl + BโŒ˜ + B
ItalicCtrl + IโŒ˜ + I
Insert LinkCtrl + KโŒ˜ + K
Heading 1Ctrl + 1โŒ˜ + 1
Heading 2Ctrl + 2โŒ˜ + 2
Heading 3Ctrl + 3โŒ˜ + 3
Toggle Focus ModeCtrl + Shift + FโŒ˜ + โ‡ง + F
Open Export ModalCtrl + Shift + EโŒ˜ + โ‡ง + E
FullscreenF11F11
Show HelpCtrl + HโŒ˜ + H

๐Ÿ—๏ธ Tech Stack

TechnologyPurpose
ViteBuild tool & dev server
Monaco EditorCode editor
MarkedMarkdown parser
MermaidDiagrams
KaTeXMath equations
Prism.jsSyntax highlighting
DOMPurifyXSS sanitization
html2pdf.jsPDF 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:

  1. Fork the repository
  2. Create your feature branch (git checkout -b feature/AmazingFeature)
  3. Commit your changes (git commit -m 'Add AmazingFeature')
  4. Push to the branch (git push origin feature/AmazingFeature)
  5. Open a Pull Request

๐Ÿ“„ License

This project is licensed under the MIT License - see the LICENSE file for details.


๐Ÿ™ Acknowledgments


Made with โค๏ธ by Nir-Bhay

โญ Star this repo if you find it useful!