personal Astro PWA JavaScript Web development
Markdown Text Editor PWA
๐ Markdown Text Editor PWA
A modern, fast, and beautiful Markdown editor built with Astro featuring real-time preview, dark mode, offline support, and Progressive Web App (PWA) capabilities.
โจ Features
Core Features
- ๐ Real-time Preview - See your Markdown rendered as you type
- ๐ Dark/Light Mode - Toggle between themes with automatic system detection
- ๐ Word & Character Count - Track your document statistics in real-time
- ๐จ Rich Toolbar - Quick formatting buttons for common Markdown syntax
- ๐พ Session Auto-save - Never lose your work during a session
- ๐ฅ Export Options - Download as
.mdor.htmlfiles - ๐ Copy HTML - One-click copy rendered HTML to clipboard
- ๐ฑ Fully Responsive - Works seamlessly on desktop, tablet, and mobile
- โก Lightning Fast - Built with Astro for optimal performance
- ๐ฏ Zero Config - Works out of the box, no setup required
๐ฑ PWA Features
- ๐ฒ Installable App - Install as a native app on any device
- ๐ Offline Support - Works completely offline after first visit
- ๐ Auto-Updates - Automatic updates with user notifications
- ๐ถ Network Status - Real-time online/offline indicator
- ๐ฏ App Shortcuts - Quick actions from home screen/start menu
- โจ๏ธ Keyboard Shortcuts - Enhanced keyboard navigation
- ๐จ Native Experience - Custom splash screen and app theming
๐ ๏ธ Tech Stack
- Astro - Static Site Generator
- Marked.js - Markdown parser
- Service Workers - Offline functionality and caching
- Web App Manifest - PWA installation and theming
- Vanilla JavaScript - No framework dependencies
- Custom CSS - Beautiful design system included
๐ฎ Usage
Keyboard Shortcuts
| Shortcut | Action |
|---|---|
Ctrl/Cmd + B | Bold |
Ctrl/Cmd + I | Italic |
Ctrl/Cmd + S | Download Markdown |
Ctrl/Cmd + N | New Document |
Ctrl/Cmd + E | Export HTML |
Ctrl/Cmd + Shift + C | Copy HTML |
Tab | Indent |
Shift + Tab | Outdent |
Toolbar Buttons
- B - Bold text
- I - Italic text
- H1, H2, H3 - Heading levels
- ๐ - Insert link
- <> - Code block
- โข - Unordered list
- 1. - Ordered list
๐ฑ PWA Usage
Installing the App
- Desktop: Click the install button in the address bar or use the in-app install button
- Mobile: Use โAdd to Home Screenโ from browser menu or tap the install prompt
- Chrome: Look for the install icon in the address bar
Offline Usage
- The app works completely offline after the first visit
- All documents are saved in session memory
- Export functionality works offline
- Updates download automatically when back online
App Shortcuts
- Right-click app icon (desktop) for quick actions
- Long-press app icon (mobile) for context menu
- Available shortcuts:
- New Document
- Export HTML
Markdown Support
The editor supports all standard Markdown syntax including:
- Headers (H1-H6)
- Bold and italic text
- Links and images
- Code blocks with syntax highlighting
- Lists (ordered and unordered)
- Blockquotes
- Tables
- Horizontal rules
- Line breaks
๐ฑ Install this app on your device for the best experience!