Spaces:
Running
Running
File size: 9,882 Bytes
a65acde bf25845 a65acde bf25845 a65acde bf25845 |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 217 218 219 220 221 222 223 224 225 226 227 228 229 230 231 232 233 234 235 236 237 238 239 240 241 242 243 244 245 246 247 248 249 250 251 252 253 254 255 256 257 258 259 260 261 262 263 264 265 266 267 268 269 270 271 272 273 274 275 276 277 278 279 280 281 282 283 284 285 286 287 288 289 290 291 292 293 294 295 296 297 298 299 300 301 302 303 304 305 306 307 308 309 310 311 312 313 314 315 316 317 318 319 320 321 |
---
title: π Elysia's Markdown Studio
emoji: π’
colorFrom: purple
colorTo: red
sdk: static
pinned: true
license: cc-by-nc-sa-4.0
short_description: A feature-rich markdown editor with AI-powered tools
---
# π Elysia Markdown Studio
**Your AI-Powered Markdown Editor & Writing Companion**
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.




---
## β¨ Features
### π Powerful Markdown Editor
- **Live Preview** - See your markdown rendered in real-time (async rendering with Marked.js v15)
- **Syntax Highlighting** - Beautiful code blocks with Prism.js
- **Rich Formatting** - Tables, task lists, blockquotes, and more
- **Math Support** - LaTeX equations with KaTeX
- **Diagrams** - Mermaid v11.4.0 diagrams support
- **Quick Toolbar** - One-click formatting for common markdown elements
- **Drag & Drop Images** - Drop images directly into editor (base64 conversion)
- **Paste Images** - Ctrl+V to paste images from clipboard
### π§ AI-Powered Tools (via OpenRouter)
- **Summarize** - Generate concise summaries of your documents
- **π² Improve Writing (VS)** - Choose from 5 writing styles:
- π **Concis** - Short and direct
- π¨ **CrΓ©atif** - Vivid with metaphors
- π **AcadΓ©mique** - Formal and structured
- πΌ **Professionnel** - Business-friendly
- π₯ **Engageant** - Attention-grabbing
- **Merge Documents** - Intelligently combine multiple documents
- **Extract Outline** - Automatic table of contents generation
- **Find Duplicates** - Detect similar documents in your library
- **Smart Organize** - AI-suggested tags and categories
- **Smart Loading States** - Visual feedback during AI processing
### π Document Management
- **Local Storage** - All documents stored in your browser (IndexedDB v2 with performance indexes)
- **Search** - Fast full-text search across all documents
- **Favorites** - Star important documents
- **Collections** - Organize documents into collections
- **Context Menu** - Right-click for quick actions (rename, delete, favorite)
- **Auto-Save** - Automatic saving every 30 seconds (with race condition protection)
- **Export All** - Bulk export all documents with one click
- **Import Documents** - Restore from backup JSON files
### π€ Multi-Format Export
- **Markdown (.md)** - Export as standard markdown
- **HTML** - Clean HTML output
- **Artifact** - Beautiful standalone HTML with embedded styles + Prism.js + KaTeX
- **Plain Text** - Remove all formatting
- **JSON** - Structured export with metadata
- **Bulk Export** - Export entire document library at once
### π¨ Templates Library
Built-in templates for common document types:
- **README** - GitHub project documentation
- **Blog Post** - Blog article structure
- **Meeting Notes** - Meeting documentation with action items
- **Documentation** - API/Software documentation
- **Academic Paper** - Research paper structure
- **Blank** - Start from scratch
Access templates via "New Document" button!
### β¨οΈ Keyboard Shortcuts
- `Ctrl+S` - Save document
- `Ctrl+N` - New document (opens template selector)
- `Ctrl+B` - Bold text
- `Ctrl+I` - Italic text
- `Ctrl+/` - Show keyboard shortcuts guide
### π¨ Modern UI
- **Dark Theme** - Eye-friendly Elysia dark theme
- **Responsive Design** - Works on desktop and tablet
- **Split View** - Editor on left, preview on right
- **Collapsible Sidebar** - Document library sidebar
- **Toast Notifications** - Beautiful, non-intrusive feedback
- **Context Menus** - Modern right-click menus with smooth animations
- **Reading Time Display** - Estimated reading time in header stats (200 wpm)
### π Security
- **Encrypted API Keys** - API keys stored with XOR encryption (not plaintext)
- **Client-Side Only** - No data sent to external servers (except AI API calls)
- **Privacy-First** - All documents stored locally in your browser
---
## π Quick Start
### 1. Launch the App
Double-click `Launch-Local-App.bat` (Windows) or open `index.html` in your browser.
### 2. Configure AI (Optional)
1. Click the **βοΈ Settings** button
2. Add your [OpenRouter API key](https://openrouter.ai/)
3. Select your preferred AI model
4. Save settings
### 3. Start Writing!
- Type in the left pane
- See live preview on the right
- Use the toolbar for quick formatting
- Save with `Ctrl+S`
- Press `Ctrl+/` for keyboard shortcuts guide
---
## π οΈ Technical Stack
### Core Technologies
- **Vanilla JavaScript** (ES6+ modules)
- **HTML5** & **CSS3**
- **IndexedDB v2** (via Dexie.js with performance indexes)
### Libraries
- **Marked.js** - Markdown parsing
- **Prism.js** - Syntax highlighting
- **KaTeX** - Math rendering
- **Mermaid** - Diagram rendering
- **Dexie.js** - IndexedDB wrapper
- **Turndown** - HTML to Markdown conversion
### AI Integration
- **OpenRouter API** - Access to multiple AI models (Grok, Claude, GPT, DeepSeek)
---
## π Project Structure
```
elysia-markdown-studio/
βββ index.html # Main HTML file
βββ Launch-App.bat # Windows launcher
βββ README.md # This file
βββ CHANGELOG.md # Version history
βββ fonts/ # Google Fonts (offline)
β βββ css2.css
βββ libs/ # External libraries
β βββ dexie.min.js
β βββ marked.min.js
βββ scripts/ # JavaScript modules
β βββ app.js # Main application controller
β βββ editor.js # Editor module
β βββ preview.js # Preview renderer
β βββ documents.js # Document management
β βββ ai-tools.js # AI-powered features
β βββ api.js # OpenRouter API integration
β βββ export.js # Export functionality
β βββ templates.js # Document templates
β βββ db.js # Database layer (Dexie)
β βββ utils.js # Utility functions
βββ styles/ # CSS files
β βββ main.css # Main stylesheet
βββ templates/ # Document templates (future)
```
---
## π§ Recent Improvements (Audit Nov 2025)
### Critical Bug Fixes
β
**Fixed Preview.getHTML()** - Added missing method for export functionality
β
**Fixed Marked.js API** - Updated listitem renderer for v11+ compatibility
β
**Fixed Initialization Order** - Resolved circular dependency issues
β
**Fixed Auto-Save Timing** - Now waits for full app initialization
### UX Enhancements
β
**Modern Context Menu** - Beautiful right-click menu for documents
β
**Loading States** - AI tools now show processing feedback
β
**Error Recovery** - Comprehensive error handling with user-friendly messages
β
**Settings Validation** - API key format validation
β
**Keyboard Shortcuts Modal** - Press `Ctrl+/` for interactive guide
### Performance Optimizations
β
**Debounced Stats Update** - Reduced unnecessary recalculations
β
**Smart Auto-Save** - Only saves when changes detected
β
**Improved State Management** - Better tracking of unsaved changes
### Documentation
β
**Enhanced Welcome Message** - Comprehensive feature guide
β
**Keyboard Shortcuts Table** - Quick reference in welcome screen
β
**Pro Tips** - Context-aware usage hints
---
## π― Use Cases
### Technical Writing
- API documentation
- Software guides
- Technical specifications
### Content Creation
- Blog posts
- Articles
- Long-form content
### Academic Work
- Research papers
- Notes
- Outlines
### Project Management
- Meeting notes
- Task lists
- Project documentation
---
## π Privacy & Data
- **100% Local** - All documents stored in your browser's IndexedDB
- **No Tracking** - No analytics, no telemetry
- **No Server** - Runs entirely client-side (except AI features)
- **Your Data** - You own your content, export anytime
**Note:** AI features require an OpenRouter API key and send content to external AI models for processing.
---
## π Troubleshooting
### AI Tools Not Working
- **Check API Key** - Verify your OpenRouter API key in Settings
- **Check Format** - Key should start with `sk-or-`
- **Check Balance** - Ensure you have credits on OpenRouter
- **Check Network** - Verify internet connection
### Preview Not Updating
- **Check Live Preview** - Ensure it's enabled in Settings
- **Refresh Page** - Try reloading the page
- **Clear Cache** - Clear browser cache if issues persist
### Documents Not Saving
- **Check Storage** - Verify browser storage isn't full
- **Check Permissions** - Ensure IndexedDB is allowed
- **Try Export** - Export important documents as backup
---
## π€ Contributing
This is a personal project by Jean & Elysia, but suggestions are welcome!
---
## π License
MIT License - Free to use, modify, and distribute.
---
## π Credits
**Built with love by Jean & Elysia** ππ
Special thanks to:
- The open-source community
- All the amazing library authors
- OpenRouter for AI access
---
## π Links
- [OpenRouter](https://openrouter.ai/) - AI API platform
- [Marked.js](https://marked.js.org/) - Markdown parser
- [Prism.js](https://prismjs.com/) - Syntax highlighter
- [KaTeX](https://katex.org/) - Math rendering
- [Mermaid](https://mermaid.js.org/) - Diagram rendering
---
**Version:** 1.3.0
**Last Updated:** December 2025
**Status:** Production Ready β
_Write beautifully. Write intelligently. Write with Elysia._ π
|