# AboveTheMark GFM Editor - Features Overview ## ✅ Implemented Features ### 🎨 Theme System - **System Dark Mode** - Auto-follows `prefers-color-scheme` - **Light Mode** - Clean white background (default) - **Dark Mode** - Deep gray theme (#1a1a1a) - **Solarized Light** - Warm beige palette (#fdf6e3) - **Solarized Dark** - Terminal-inspired dark (#002b36) - Theme persistence in localStorage ### 📐 LaTeX Rendering - **MathJax integration** via CDN - Block math: `$$...$$` - Inline math: `$...$` or `\(...\)` - Full LaTeX support (integrals, fractions, Greek letters, matrices) ### 🖼️ SVG Support - GitHub raw images - Imgur and external URLs - Data URI embedding - Automatic loading with lazy loading ### 💾 File I/O **Save:** - Save as `.md` file with timestamp in filename - Notification feedback on success/error **Open:** - Open existing `.md`, `.markdown`, or `.txt` files - Auto-scroll to bottom after opening - File validation with error handling **Export:** - Export to PDF (as HTML for compatibility) - Export to DOCX (as HTML for Word compatibility) **Import:** - Import DOCX files with text content extraction - Fallback to raw text parsing ### ⌨️ Keyboard Shortcuts - `Ctrl+S` - Save markdown as .md file - `Ctrl+P` - Export to PDF/HTML - `Ctrl+O` - Open existing file - `Ctrl+Shift+S` - Export to DOCX - `Ctrl+Shift+I` - Import DOCX ### 🚀 Build Targets **Singlefile HTML (Primary)**: - Standalone HTML with all dependencies from CDN - Works offline after first load - No build process required - Perfect for USB drives / air-gapped machines **Development Server**: - Hot reload development - `npm run dev` - Vite dev server at localhost:3000 **PWA Support**: - Service worker for offline caching - Installable app icon - Standalone display mode **IWA (In-Window Application)**: - Chrome extension popup mode - Add to browser toolbar ### 🎯 File Structure ``` AboveTheMark/ ├── public/ # Singlefile build output │ ├── index.html # Main editor (standalone!) │ ├── sample.md # Example markdown file │ ├── manifest.json # PWA manifest │ └── sw.js # Service worker ├── src/ # Development source │ ├── components/ # React components │ │ ├── MarkdownEditor.jsx │ │ ├── LaTeXRenderer.jsx │ │ └── SvgRenderer.jsx │ ├── hooks/ # Custom hooks │ │ ├── useDarkMode.js │ │ └── useKeyboardShortcuts.js │ ├── utils/ # Utility functions │ │ ├── saveAsMd.js │ │ ├── openMd.js │ │ ├── exportToPdf.js │ │ ├── exportToDocx.js │ │ └── importFromDocx.js │ ├── App.jsx # Main application │ ├── index.css # Styling │ └── main.jsx # Entry point ├── package.json # Dependencies ├── build-singlefile.mjs # Build script └── README.md # Documentation ``` ### 📦 Dependencies (CDN-hosted) - React 18/19 - UI library - react-md-editor - Markdown editor component - MathJax - LaTeX rendering engine - Babel - JSX transpilation - All loaded from jsdelivr CDN for offline capability ### 🎯 Key Use Cases **For Portable Use:** ```bash # Build singlefile HTML npm run build # Copy dist/index.html to USB drive ``` **For Air-Gapped Computer:** ```bash # Open directly - no internet needed after first load! open public/index.html ``` **For Chrome Extension:** ```bash # Load in chrome://extensions (Developer Mode) # Select public/ folder as extension popup ``` ### 📊 Technical Highlights - **Zero bundling required** - Standalone HTML with CDN modules - **Offline capable** - Service worker caches essential resources - **Keyboard accessible** - Full keyboard shortcuts support - **Responsive design** - Works on desktop and tablets - **Cross-browser** - Chrome, Firefox, Safari, Edge supported ### 🎨 Design Features - Modern Material Design inspired UI - Smooth theme transitions - Toast notifications for actions - Syntax highlighting via code tags - Markdown preview with proper spacing --- ## Usage Examples ### Quick Start (No Build Needed) ```bash # Just open the file! open public/index.html # Or drag to any browser ``` ### Development ```bash npm run dev # Hot reload server ``` ### Build for Distribution ```bash npm run build # Creates standalone dist/ folder ``` --- ## All Features in One Line > 📝 AboveTheMark = React + Markdown Editor + LaTeX (MathJax) + PDF/DOCX Export + Dark Mode + Keyboard Shortcuts + Offline Support! **Ready to use right now!** 🚀