5.6 KiB
📖 AboveTheMark GFM Editor - User Guide
Quick Start
Option 1: Open Directly (Fastest)
Simply open the dist/index.html file in any browser:
open dist/index.html # macOS
xdg-open dist/index.html # Linux
start dist\index.html # Windows
double-click index.html # Any OS with file explorer
No server required! Just double-click the file.
Option 2: Local Server
For development or hot reload:
npm run dev
# Visit http://localhost:3000
Option 3: USB / Air-Gapped
Copy dist/index.html to a USB drive and use it offline. All dependencies load from CDN, so it works after first internet connection (then cached).
🎨 Features Overview
Dark Mode with Solarized Palettes ✅
- Light - Clean white background
- Dark - Deep gray theme
- Solarized Light - Warm beige palette (#fdf6e3)
- Solarized Dark - Classic terminal dark (#002b36)
Click the theme button or use keyboard shortcuts to switch!
LaTeX Rendering 📐
Full mathematical expression support:
$$\int_{0}^{1} x^2 \, dx = \frac{1}{3}$$ # Block math
$E = mc^2$ # Inline math
x = \frac{-b \pm \sqrt{b^2 - 4ac}}{2a} # Complex formulas
SVG Rendering 🎨
Three ways to embed SVGs:
-
Markdown image syntax (GitHub raw URLs, Imgur):
 -
Raw HTML tags:
<svg width="50" height="50"> <circle cx="25" cy="25" r="20" fill="#ff6b6b"/> </svg> -
Code blocks with language tag:
<svg width="100" height="100"> <rect width="100" height="100" fill="#4ecdc4"/> </svg>
File Operations 💾
Save as .md (Ctrl+S):
- Uses native file picker when available
- Falls back to download dialog for older browsers
- Preserves document title in filename
Open .md files (Ctrl+O):
- Native file picker selects markdown files (.md, .markdown, .txt)
- Loads content into editor immediately
- Maintains document history
DOCX Support 📑
Export to DOCX:
- Generates native Microsoft Word documents (.docx)
- Preserves headings, paragraphs, bold, italics
- Supports tables, code blocks, lists
- Compatible with Word, Google Docs, LibreOffice Writer
Import from DOCX (Ctrl+Shift+I):
- Extracts text content from Word documents
- Converts to markdown format
- Preserves structure and formatting where possible
PDF Export 📄
Uses native browser print functionality for best quality output:
- Vector graphics preserved
- KaTeX math rendering optimized
- Professional typography
- Compatible with any PDF viewer
⌨️ Keyboard Shortcuts
| Shortcut | Action |
|---|---|
Ctrl+S / Cmd+S |
Save as .md file |
Ctrl+O / Cmd+O |
Open markdown file |
Ctrl+P / Cmd+P |
Export to PDF (print) |
Ctrl+Shift+S |
Export to DOCX |
Ctrl+Shift+I |
Import from DOCX |
F1 or Ctrl+/ |
Show this cheatsheet |
📁 File Structure
dist/ # ← Singlefile build (ready to use!)
├── index.html # Standalone editor (~16KB)
├── manifest.json # PWA configuration
└── sw.js # Service worker for offline support
src/ # Development source
├── App.jsx # Main application
├── main.jsx # Entry point
├── components/ # React components
│ ├── Editor.jsx # Markdown editor with KaTeX/SVG
│ └── Toolbar.jsx # Application toolbar
├── hooks/ # Custom hooks
│ ├── useTheme.js # Theme management
│ └── useKeyboardShortcuts.js
└── utils/ # Utility functions
├── exportDocx.js # DOCX generation
├── importDocx.js # DOCX to markdown conversion
├── fileIo.js # File save/load operations
├── exportPdf.js # PDF export handler
└── saveAsMd.js # Markdown saving fallback
public/ # Additional assets
├── sample.md # Comprehensive example file
├── favicon.svg # Browser tab icon
├── icons.svg # UI icons
└── vite.svg # Vite logo
package.json # Dependencies and scripts
README.md # Project documentation
FEATURES.md # Technical feature list
IMPLEMENTATION_COMPLETE.md # Implementation summary
GUIDE.md # ← This user guide
🎯 Use Cases
Portable Markdown Editor
Copy dist/index.html to a USB drive and use it anywhere - even on air-gapped computers!
Development Environment
Hot reload development with npm run dev at localhost:3000.
Chrome Extension (IWA)
Load the extension popup from the public folder for toolbar integration.
Offline-First App
Service worker caches essential resources for offline editing after first load.
🐛 Troubleshooting
Editor doesn't load?
- Check internet connection (CDNs required for dependencies)
- Clear browser cache and reload
- Try a different browser
Math expressions not rendering?
- Ensure KaTeX loaded successfully (check console)
- Use MathJax alternative in settings if needed
DOCX export fails?
- Some browsers require file system access API
- Uses fallback download method if native picker unavailable
📝 License
MIT License - Feel free to use, modify, and distribute!
Made with ❤️ using:
- React + @uiw/react-md-editor
- KaTeX for LaTeX
- docx for Word documents
- Mammoth for DOCX import
- Lucide Icons for UI
AboveTheMark - Your comprehensive GFM editor 🚀