Update README.md
Browse files
README.md
CHANGED
|
@@ -1,12 +1,320 @@
|
|
| 1 |
---
|
| 2 |
-
title: Elysia Markdown Studio
|
| 3 |
-
emoji:
|
| 4 |
-
colorFrom:
|
| 5 |
colorTo: red
|
| 6 |
sdk: static
|
| 7 |
-
pinned:
|
| 8 |
license: cc-by-nc-sa-4.0
|
| 9 |
short_description: A feature-rich markdown editor with AI-powered tools
|
| 10 |
---
|
| 11 |
|
| 12 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
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|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
---
|
| 2 |
+
title: π Elysia's Markdown Studio
|
| 3 |
+
emoji: π’
|
| 4 |
+
colorFrom: purple
|
| 5 |
colorTo: red
|
| 6 |
sdk: static
|
| 7 |
+
pinned: true
|
| 8 |
license: cc-by-nc-sa-4.0
|
| 9 |
short_description: A feature-rich markdown editor with AI-powered tools
|
| 10 |
---
|
| 11 |
|
| 12 |
+
# π Elysia Markdown Studio
|
| 13 |
+
|
| 14 |
+
**Your AI-Powered Markdown Editor & Writing Companion**
|
| 15 |
+
|
| 16 |
+
A beautiful, feature-rich markdown editor with AI-powered tools built with love by Jean & Elysia. Write, organize, and enhance your documents with the power of artificial intelligence.
|
| 17 |
+
|
| 18 |
+

|
| 19 |
+

|
| 20 |
+

|
| 21 |
+

|
| 22 |
+
|
| 23 |
+
---
|
| 24 |
+
|
| 25 |
+
## β¨ Features
|
| 26 |
+
|
| 27 |
+
### π Powerful Markdown Editor
|
| 28 |
+
|
| 29 |
+
- **Live Preview** - See your markdown rendered in real-time (async rendering with Marked.js v15)
|
| 30 |
+
- **Syntax Highlighting** - Beautiful code blocks with Prism.js
|
| 31 |
+
- **Rich Formatting** - Tables, task lists, blockquotes, and more
|
| 32 |
+
- **Math Support** - LaTeX equations with KaTeX
|
| 33 |
+
- **Diagrams** - Mermaid v11.4.0 diagrams support
|
| 34 |
+
- **Quick Toolbar** - One-click formatting for common markdown elements
|
| 35 |
+
- **Drag & Drop Images** - Drop images directly into editor (base64 conversion)
|
| 36 |
+
- **Paste Images** - Ctrl+V to paste images from clipboard
|
| 37 |
+
|
| 38 |
+
### π§ AI-Powered Tools (via OpenRouter)
|
| 39 |
+
|
| 40 |
+
- **Summarize** - Generate concise summaries of your documents
|
| 41 |
+
- **π² Improve Writing (VS)** - Choose from 5 writing styles:
|
| 42 |
+
- π **Concis** - Short and direct
|
| 43 |
+
- π¨ **CrΓ©atif** - Vivid with metaphors
|
| 44 |
+
- π **AcadΓ©mique** - Formal and structured
|
| 45 |
+
- πΌ **Professionnel** - Business-friendly
|
| 46 |
+
- π₯ **Engageant** - Attention-grabbing
|
| 47 |
+
- **Merge Documents** - Intelligently combine multiple documents
|
| 48 |
+
- **Extract Outline** - Automatic table of contents generation
|
| 49 |
+
- **Find Duplicates** - Detect similar documents in your library
|
| 50 |
+
- **Smart Organize** - AI-suggested tags and categories
|
| 51 |
+
- **Smart Loading States** - Visual feedback during AI processing
|
| 52 |
+
|
| 53 |
+
### π Document Management
|
| 54 |
+
|
| 55 |
+
- **Local Storage** - All documents stored in your browser (IndexedDB v2 with performance indexes)
|
| 56 |
+
- **Search** - Fast full-text search across all documents
|
| 57 |
+
- **Favorites** - Star important documents
|
| 58 |
+
- **Collections** - Organize documents into collections
|
| 59 |
+
- **Context Menu** - Right-click for quick actions (rename, delete, favorite)
|
| 60 |
+
- **Auto-Save** - Automatic saving every 30 seconds (with race condition protection)
|
| 61 |
+
- **Export All** - Bulk export all documents with one click
|
| 62 |
+
- **Import Documents** - Restore from backup JSON files
|
| 63 |
+
|
| 64 |
+
### π€ Multi-Format Export
|
| 65 |
+
|
| 66 |
+
- **Markdown (.md)** - Export as standard markdown
|
| 67 |
+
- **HTML** - Clean HTML output
|
| 68 |
+
- **Artifact** - Beautiful standalone HTML with embedded styles + Prism.js + KaTeX
|
| 69 |
+
- **Plain Text** - Remove all formatting
|
| 70 |
+
- **JSON** - Structured export with metadata
|
| 71 |
+
- **Bulk Export** - Export entire document library at once
|
| 72 |
+
|
| 73 |
+
### π¨ Templates Library
|
| 74 |
+
|
| 75 |
+
Built-in templates for common document types:
|
| 76 |
+
|
| 77 |
+
- **README** - GitHub project documentation
|
| 78 |
+
- **Blog Post** - Blog article structure
|
| 79 |
+
- **Meeting Notes** - Meeting documentation with action items
|
| 80 |
+
- **Documentation** - API/Software documentation
|
| 81 |
+
- **Academic Paper** - Research paper structure
|
| 82 |
+
- **Blank** - Start from scratch
|
| 83 |
+
|
| 84 |
+
Access templates via "New Document" button!
|
| 85 |
+
|
| 86 |
+
### β¨οΈ Keyboard Shortcuts
|
| 87 |
+
|
| 88 |
+
- `Ctrl+S` - Save document
|
| 89 |
+
- `Ctrl+N` - New document (opens template selector)
|
| 90 |
+
- `Ctrl+B` - Bold text
|
| 91 |
+
- `Ctrl+I` - Italic text
|
| 92 |
+
- `Ctrl+/` - Show keyboard shortcuts guide
|
| 93 |
+
|
| 94 |
+
### π¨ Modern UI
|
| 95 |
+
|
| 96 |
+
- **Dark Theme** - Eye-friendly Elysia dark theme
|
| 97 |
+
- **Responsive Design** - Works on desktop and tablet
|
| 98 |
+
- **Split View** - Editor on left, preview on right
|
| 99 |
+
- **Collapsible Sidebar** - Document library sidebar
|
| 100 |
+
- **Toast Notifications** - Beautiful, non-intrusive feedback
|
| 101 |
+
- **Context Menus** - Modern right-click menus with smooth animations
|
| 102 |
+
- **Reading Time Display** - Estimated reading time in header stats (200 wpm)
|
| 103 |
+
|
| 104 |
+
### π Security
|
| 105 |
+
|
| 106 |
+
- **Encrypted API Keys** - API keys stored with XOR encryption (not plaintext)
|
| 107 |
+
- **Client-Side Only** - No data sent to external servers (except AI API calls)
|
| 108 |
+
- **Privacy-First** - All documents stored locally in your browser
|
| 109 |
+
|
| 110 |
+
---
|
| 111 |
+
|
| 112 |
+
## π Quick Start
|
| 113 |
+
|
| 114 |
+
### 1. Launch the App
|
| 115 |
+
|
| 116 |
+
Double-click `Launch-Local-App.bat` (Windows) or open `index.html` in your browser.
|
| 117 |
+
|
| 118 |
+
### 2. Configure AI (Optional)
|
| 119 |
+
|
| 120 |
+
1. Click the **βοΈ Settings** button
|
| 121 |
+
2. Add your [OpenRouter API key](https://openrouter.ai/)
|
| 122 |
+
3. Select your preferred AI model
|
| 123 |
+
4. Save settings
|
| 124 |
+
|
| 125 |
+
### 3. Start Writing!
|
| 126 |
+
|
| 127 |
+
- Type in the left pane
|
| 128 |
+
- See live preview on the right
|
| 129 |
+
- Use the toolbar for quick formatting
|
| 130 |
+
- Save with `Ctrl+S`
|
| 131 |
+
- Press `Ctrl+/` for keyboard shortcuts guide
|
| 132 |
+
|
| 133 |
+
---
|
| 134 |
+
|
| 135 |
+
## π οΈ Technical Stack
|
| 136 |
+
|
| 137 |
+
### Core Technologies
|
| 138 |
+
|
| 139 |
+
- **Vanilla JavaScript** (ES6+ modules)
|
| 140 |
+
- **HTML5** & **CSS3**
|
| 141 |
+
- **IndexedDB v2** (via Dexie.js with performance indexes)
|
| 142 |
+
|
| 143 |
+
### Libraries
|
| 144 |
+
|
| 145 |
+
- **Marked.js** - Markdown parsing
|
| 146 |
+
- **Prism.js** - Syntax highlighting
|
| 147 |
+
- **KaTeX** - Math rendering
|
| 148 |
+
- **Mermaid** - Diagram rendering
|
| 149 |
+
- **Dexie.js** - IndexedDB wrapper
|
| 150 |
+
- **Turndown** - HTML to Markdown conversion
|
| 151 |
+
|
| 152 |
+
### AI Integration
|
| 153 |
+
|
| 154 |
+
- **OpenRouter API** - Access to multiple AI models (Grok, Claude, GPT, DeepSeek)
|
| 155 |
+
|
| 156 |
+
---
|
| 157 |
+
|
| 158 |
+
## π Project Structure
|
| 159 |
+
|
| 160 |
+
```
|
| 161 |
+
elysia-markdown-studio/
|
| 162 |
+
βββ index.html # Main HTML file
|
| 163 |
+
βββ Launch-App.bat # Windows launcher
|
| 164 |
+
βββ README.md # This file
|
| 165 |
+
βββ CHANGELOG.md # Version history
|
| 166 |
+
βββ fonts/ # Google Fonts (offline)
|
| 167 |
+
β βββ css2.css
|
| 168 |
+
βββ libs/ # External libraries
|
| 169 |
+
β βββ dexie.min.js
|
| 170 |
+
β βββ marked.min.js
|
| 171 |
+
βββ scripts/ # JavaScript modules
|
| 172 |
+
β βββ app.js # Main application controller
|
| 173 |
+
β βββ editor.js # Editor module
|
| 174 |
+
β βββ preview.js # Preview renderer
|
| 175 |
+
β βββ documents.js # Document management
|
| 176 |
+
β βββ ai-tools.js # AI-powered features
|
| 177 |
+
β βββ api.js # OpenRouter API integration
|
| 178 |
+
β βββ export.js # Export functionality
|
| 179 |
+
β βββ templates.js # Document templates
|
| 180 |
+
β βββ db.js # Database layer (Dexie)
|
| 181 |
+
β βββ utils.js # Utility functions
|
| 182 |
+
βββ styles/ # CSS files
|
| 183 |
+
β βββ main.css # Main stylesheet
|
| 184 |
+
βββ templates/ # Document templates (future)
|
| 185 |
+
```
|
| 186 |
+
|
| 187 |
+
---
|
| 188 |
+
|
| 189 |
+
## π§ Recent Improvements (Audit Nov 2025)
|
| 190 |
+
|
| 191 |
+
### Critical Bug Fixes
|
| 192 |
+
|
| 193 |
+
β
**Fixed Preview.getHTML()** - Added missing method for export functionality
|
| 194 |
+
β
**Fixed Marked.js API** - Updated listitem renderer for v11+ compatibility
|
| 195 |
+
β
**Fixed Initialization Order** - Resolved circular dependency issues
|
| 196 |
+
β
**Fixed Auto-Save Timing** - Now waits for full app initialization
|
| 197 |
+
|
| 198 |
+
### UX Enhancements
|
| 199 |
+
|
| 200 |
+
β
**Modern Context Menu** - Beautiful right-click menu for documents
|
| 201 |
+
β
**Loading States** - AI tools now show processing feedback
|
| 202 |
+
β
**Error Recovery** - Comprehensive error handling with user-friendly messages
|
| 203 |
+
β
**Settings Validation** - API key format validation
|
| 204 |
+
β
**Keyboard Shortcuts Modal** - Press `Ctrl+/` for interactive guide
|
| 205 |
+
|
| 206 |
+
### Performance Optimizations
|
| 207 |
+
|
| 208 |
+
β
**Debounced Stats Update** - Reduced unnecessary recalculations
|
| 209 |
+
β
**Smart Auto-Save** - Only saves when changes detected
|
| 210 |
+
β
**Improved State Management** - Better tracking of unsaved changes
|
| 211 |
+
|
| 212 |
+
### Documentation
|
| 213 |
+
|
| 214 |
+
β
**Enhanced Welcome Message** - Comprehensive feature guide
|
| 215 |
+
β
**Keyboard Shortcuts Table** - Quick reference in welcome screen
|
| 216 |
+
β
**Pro Tips** - Context-aware usage hints
|
| 217 |
+
|
| 218 |
+
---
|
| 219 |
+
|
| 220 |
+
## π― Use Cases
|
| 221 |
+
|
| 222 |
+
### Technical Writing
|
| 223 |
+
|
| 224 |
+
- API documentation
|
| 225 |
+
- Software guides
|
| 226 |
+
- Technical specifications
|
| 227 |
+
|
| 228 |
+
### Content Creation
|
| 229 |
+
|
| 230 |
+
- Blog posts
|
| 231 |
+
- Articles
|
| 232 |
+
- Long-form content
|
| 233 |
+
|
| 234 |
+
### Academic Work
|
| 235 |
+
|
| 236 |
+
- Research papers
|
| 237 |
+
- Notes
|
| 238 |
+
- Outlines
|
| 239 |
+
|
| 240 |
+
### Project Management
|
| 241 |
+
|
| 242 |
+
- Meeting notes
|
| 243 |
+
- Task lists
|
| 244 |
+
- Project documentation
|
| 245 |
+
|
| 246 |
+
---
|
| 247 |
+
|
| 248 |
+
## π Privacy & Data
|
| 249 |
+
|
| 250 |
+
- **100% Local** - All documents stored in your browser's IndexedDB
|
| 251 |
+
- **No Tracking** - No analytics, no telemetry
|
| 252 |
+
- **No Server** - Runs entirely client-side (except AI features)
|
| 253 |
+
- **Your Data** - You own your content, export anytime
|
| 254 |
+
|
| 255 |
+
**Note:** AI features require an OpenRouter API key and send content to external AI models for processing.
|
| 256 |
+
|
| 257 |
+
---
|
| 258 |
+
|
| 259 |
+
## π Troubleshooting
|
| 260 |
+
|
| 261 |
+
### AI Tools Not Working
|
| 262 |
+
|
| 263 |
+
- **Check API Key** - Verify your OpenRouter API key in Settings
|
| 264 |
+
- **Check Format** - Key should start with `sk-or-`
|
| 265 |
+
- **Check Balance** - Ensure you have credits on OpenRouter
|
| 266 |
+
- **Check Network** - Verify internet connection
|
| 267 |
+
|
| 268 |
+
### Preview Not Updating
|
| 269 |
+
|
| 270 |
+
- **Check Live Preview** - Ensure it's enabled in Settings
|
| 271 |
+
- **Refresh Page** - Try reloading the page
|
| 272 |
+
- **Clear Cache** - Clear browser cache if issues persist
|
| 273 |
+
|
| 274 |
+
### Documents Not Saving
|
| 275 |
+
|
| 276 |
+
- **Check Storage** - Verify browser storage isn't full
|
| 277 |
+
- **Check Permissions** - Ensure IndexedDB is allowed
|
| 278 |
+
- **Try Export** - Export important documents as backup
|
| 279 |
+
|
| 280 |
+
---
|
| 281 |
+
|
| 282 |
+
## π€ Contributing
|
| 283 |
+
|
| 284 |
+
This is a personal project by Jean & Elysia, but suggestions are welcome!
|
| 285 |
+
|
| 286 |
+
---
|
| 287 |
+
|
| 288 |
+
## π License
|
| 289 |
+
|
| 290 |
+
MIT License - Free to use, modify, and distribute.
|
| 291 |
+
|
| 292 |
+
---
|
| 293 |
+
|
| 294 |
+
## π Credits
|
| 295 |
+
|
| 296 |
+
**Built with love by Jean & Elysia** ππ
|
| 297 |
+
|
| 298 |
+
Special thanks to:
|
| 299 |
+
|
| 300 |
+
- The open-source community
|
| 301 |
+
- All the amazing library authors
|
| 302 |
+
- OpenRouter for AI access
|
| 303 |
+
|
| 304 |
+
---
|
| 305 |
+
|
| 306 |
+
## π Links
|
| 307 |
+
|
| 308 |
+
- [OpenRouter](https://openrouter.ai/) - AI API platform
|
| 309 |
+
- [Marked.js](https://marked.js.org/) - Markdown parser
|
| 310 |
+
- [Prism.js](https://prismjs.com/) - Syntax highlighter
|
| 311 |
+
- [KaTeX](https://katex.org/) - Math rendering
|
| 312 |
+
- [Mermaid](https://mermaid.js.org/) - Diagram rendering
|
| 313 |
+
|
| 314 |
+
---
|
| 315 |
+
|
| 316 |
+
**Version:** 1.3.0
|
| 317 |
+
**Last Updated:** December 2025
|
| 318 |
+
**Status:** Production Ready β
|
| 319 |
+
|
| 320 |
+
_Write beautifully. Write intelligently. Write with Elysia._ π
|