# ๐Ÿ’Ž ELYSIA MARKDOWN STUDIO - CHANGELOG All notable changes to this project will be documented in this file. --- ## [1.3.0] - 2025-12-14 - Production Ready Release ๐Ÿš€โœจ ### ๐Ÿ†• New Features **SEO & Social Sharing:** - โœจ **NEW** - Complete meta tags for SEO (description, keywords, author) - โœจ **NEW** - Open Graph tags for beautiful social media previews - โœจ **NEW** - Twitter Card support - โœจ **NEW** - Theme color meta tag (#667eea) **Accessibility & UX:** - โœจ **NEW** - Favicon (๐Ÿ’Ž diamond emoji SVG) - โœจ **NEW** - Noscript fallback for users with JavaScript disabled - โœจ **NEW** - Complete GitHub Light theme for preview pane - โœจ **NEW** - ARIA labels on all interactive elements (buttons, inputs, regions) - โœจ **NEW** - Role attributes for better screen reader support - โœจ **NEW** - Proper document structure with banner, toolbar, and complementary roles ### ๐ŸŽจ UI/UX Improvements **Preview Themes:** - โœ… **IMPROVED** - Full GitHub Light theme with proper colors, borders, and table styling - โœ… **IMPROVED** - Theme switching now fully functional ### โ™ฟ Accessibility (WCAG 2.1) - All header buttons have descriptive aria-labels - Toast container marked as alert with aria-live - Sidebar marked as complementary landmark - Editor and preview panes have proper region roles - Decorative emojis marked with aria-hidden ### ๐Ÿ”ง Technical Improvements - โ™ป๏ธ Version bump to v1.3.0 across all files - โ™ป๏ธ Better HTML structure with proper meta tags - โ™ป๏ธ Production-ready for deployment to elysia-suite.com ### ๐Ÿ“‹ Files Changed - `index.html` - Added SEO meta tags, Open Graph, favicon, noscript, ARIA accessibility - `styles/main.css` - Added GitHub Light theme (~80 lines) - `scripts/app.js` - Updated version number - `README.md` - Updated version badge - `CHANGELOG.md` - Added v1.3.0 release notes --- ## [1.2.1] - 2025-11-23 - Critical Hotfixes ๐Ÿ”ง ### ๐Ÿ› Critical Bug Fixes **Marked.js v15 Compatibility:** - โœ… **FIXED** - Updated renderer for Marked.js v15.0.12 (token-based API) - โœ… **FIXED** - `listitem(token)` now uses `token.task`, `token.checked`, `token.text` - โœ… **FIXED** - Code highlighting moved to `code(token)` renderer - โœ… **FIXED** - `marked.parse()` now async with `await` - โœ… **FIXED** - Preview no longer displays `[object Object]` **Database:** - โœ… **FIXED** - DB.searchDocuments() duplicate code block removed (syntax error line 165) - โœ… **FIXED** - Search now properly sorts by updatedAt **UI/UX:** - โœ… **FIXED** - Toast close button (ร—) now has proper hover styles - โŒ **REMOVED** - Distraction-free mode (was buggy, removed completely) - Removed button ๐ŸŽฏ from header - Removed F11/Esc keyboard shortcuts - Removed all `body.distraction-free` CSS (~50 lines) - Removed `toggleFullscreen()` function ### ๐Ÿ“ฆ Dependency Updates - **Marked.js**: v11 โ†’ v15.0.12 (local lib) - **Mermaid**: v10.6.1 โ†’ v11.4.0 ### ๐ŸŽจ Code Quality - โ™ป๏ธ Cleaner codebase (removed dead feature) - โ™ป๏ธ Better error handling in preview rendering - โ™ป๏ธ Type safety checks for marked.parse() output --- ## [1.2.0] - 2025-11-23 - MEGA AUDIT UPDATE ๐Ÿš€โœจ ### ๐Ÿ› Critical Bug Fixes **Core Functionality:** - โœ… **FIXED** - Preview.getHTML() now includes null check for export safety - โœ… **FIXED** - Templates.getTemplate() now properly async, searches custom templates too - โœ… **FIXED** - DB.searchDocuments() completed with full search logic (title + content + tags) - โœ… **FIXED** - Keyboard shortcut Ctrl+N now opens template selector (not blank doc) - โœ… **FIXED** - Export modal validation handles empty content properly ### โœจ NEW FEATURES **Image Handling:** - ๐Ÿ–ผ๏ธ **NEW** - Drag & drop images directly into editor (base64 conversion) - ๐Ÿ“‹ **NEW** - Paste images from clipboard (Ctrl+V works!) - ๐ŸŽจ **NEW** - Visual feedback with blue glow when dragging images **Document Management:** - ๐Ÿ“Š **NEW** - Reading time estimate in header stats (based on 200 wpm) - ๐Ÿ” **NEW** - Duplicate detection before creating new documents - ๐Ÿ“‹ **NEW** - "Copy to Clipboard" quick export option - โš ๏ธ **NEW** - Content validation for AI tools (50-100 char minimum) **AI Tools Enhancements:** - ๐Ÿ’ก **NEW** - "Improve Writing" offers choice: replace or create new doc - ๐ŸŽจ **NEW** - Beautiful spinning loading toast during AI operations - ๐Ÿš€ **NEW** - Better error messages with actionable guidance ### ๐ŸŽจ UI/UX Improvements **Visual Polish:** - โœจ Context menu positioning prevents viewport overflow - โœจ Drag-over state styling for editor (blue border + glow) - โœจ Better empty state messages ("Add some content before saving!") - โœจ Live preview toggle actually works now (enable/disable) **User Feedback:** - โœ… More helpful error messages for AI tools - โœ… Loading states with spinning icons - โœ… Confirmation dialogs for destructive actions ### ๐Ÿ”ง Technical Improvements **Dependencies:** - ๐Ÿ“ฆ Mermaid upgraded: v10.6.1 โ†’ v11.4.0 (latest) - ๐Ÿ“ฆ Better async/await handling throughout codebase **Architecture:** - ๐Ÿ—๏ธ New CSS file: `styles/drag-drop.css` for image features - ๐Ÿ—๏ธ Fixed race conditions in template loading - ๐Ÿ—๏ธ Improved search includes tags now **Code Quality:** - โ™ป๏ธ Refactored image insertion logic (DRY principle) - โ™ป๏ธ Better error recovery in AI tools - โ™ป๏ธ Utils.readingTime() helper added ### ๐Ÿ“š Documentation - ๐Ÿ“– Updated README with all new features - ๐Ÿ“– Documented drag & drop capabilities - ๐Ÿ“– Added reading time feature to docs --- ## [1.0.2] - 2025-11-22 - Syntax Errors Hotfix ๐Ÿ”ง ### ๐Ÿ› Critical Syntax Fixes **documents.js:** - โœ… **FIXED** - Invalid backslash escapes in `querySelectorAll()` (line 155) - โœ… **FIXED** - Literal `\n` characters instead of actual line breaks (line 189) **export.js:** - โœ… **FIXED** - Duplicate HTML code outside template literal (line 244+) - โœ… **FIXED** - Orphaned CSS causing "Unexpected token" error **Impact:** Application now loads without console errors โœจ --- ## [1.0.1] - 2025-11-22 - AUDIT & CRITICAL FIXES ๐Ÿ”ง ### ๐Ÿ› Critical Bug Fixes **Preview & Export:** - โœ… **FIXED** - Added missing `getHTML()` method in preview.js (export was broken) - โœ… **FIXED** - Updated Marked.js listitem renderer for v11+ API compatibility - โœ… **FIXED** - Task lists now render correctly with proper checkbox HTML **Initialization & Dependencies:** - โœ… **FIXED** - Circular dependency issues between app.js and modules - โœ… **FIXED** - Auto-save now starts AFTER full app initialization (was causing crashes) - โœ… **FIXED** - Module loading order now guarantees proper initialization sequence - โœ… **FIXED** - Unsaved changes tracking now properly set on editor input **Database & Persistence:** - โœ… **IMPROVED** - Auto-save only triggers when actual changes detected - โœ… **IMPROVED** - Better state management for currentDoc and currentDocId ### ๐ŸŽจ UX Enhancements **Context Menu:** - โœจ **NEW** - Modern animated context menu for document actions - โœจ **NEW** - Right-click documents for: Toggle Favorite, Rename, Delete - โœจ **REMOVED** - Primitive alert-based menu replaced with beautiful custom menu **Loading States & Feedback:** - โœจ **NEW** - AI tools now show processing state (prevents double-clicks) - โœจ **IMPROVED** - User-friendly error messages for common issues: - API key not configured - Network errors - Rate limiting - Invalid API responses - โœจ **IMPROVED** - Toast notifications duration increased for errors (5s) **Keyboard Shortcuts:** - โœจ **NEW** - `Ctrl+/` - Show interactive keyboard shortcuts modal - โœจ **IMPROVED** - Enhanced welcome message with shortcuts table - โœจ **NEW** - Shortcuts modal dismissible with Esc key **Settings Validation:** - โœจ **NEW** - API key format validation (must start with "sk-or-") - โœจ **IMPROVED** - Input trimming to prevent whitespace issues - โœจ **IMPROVED** - Warning toast for invalid API key format ### ๐Ÿ“Š Performance Optimizations - โšก **OPTIMIZED** - Stats update now properly debounced (300ms) - โšก **OPTIMIZED** - Preview update only triggered when editor content changes - โšก **OPTIMIZED** - Auto-save checks for unsaved changes before saving - โšก **REDUCED** - Unnecessary re-renders in preview pane ### ๐Ÿ“ Documentation - ๐Ÿ“š **NEW** - Comprehensive README.md with all features documented - ๐Ÿ“š **IMPROVED** - Welcome message includes pro tips and keyboard shortcuts table - ๐Ÿ“š **IMPROVED** - Inline code comments for better maintainability - ๐Ÿ“š **NEW** - Keyboard shortcuts interactive guide ### ๐ŸŽฏ Code Quality - ๐Ÿงน **REFACTORED** - Better error handling throughout all modules - ๐Ÿงน **IMPROVED** - Consistent null-checking for window.app references - ๐Ÿงน **IMPROVED** - Promise handling in async functions - ๐Ÿงน **REMOVED** - Dead code and unused variables - ๐Ÿงน **IMPROVED** - Module exports consistency ### ๐Ÿ”’ Stability - ๐Ÿ›ก๏ธ **HARDENED** - Prevents crashes from undefined window.app - ๐Ÿ›ก๏ธ **HARDENED** - AI tools gracefully handle missing API keys - ๐Ÿ›ก๏ธ **HARDENED** - Export handles missing content gracefully - ๐Ÿ›ก๏ธ **HARDENED** - Auto-save won't start if app not initialized --- ## [1.0.0] - 2025-11-17 ### ๐ŸŽ‰ Initial Release - The Writer's Dream Tool **Core Features:** - โœ… **Split-pane editor** - Write markdown on left, see preview on right - โœ… **Live preview** - Real-time rendering as you type - โœ… **Rich markdown support** - GFM, tables, task lists, code blocks - โœ… **Syntax highlighting** - Prism.js for code blocks - โœ… **KaTeX math** - Beautiful math equations rendering - โœ… **Mermaid diagrams** - Flowcharts, sequence diagrams, and more - โœ… **Document management** - Save unlimited docs in IndexedDB - โœ… **Collections & tags** - Organize your documents - โœ… **Search & filter** - Find documents quickly - โœ… **Favorites** - Star your important docs **AI-Powered Features (Elysia Inside!):** - ๐Ÿง  **Summarize** - Generate concise summaries - โœจ **Improve Writing** - Enhance clarity and style - ๐Ÿ“š **Merge Documents** - Intelligently combine multiple docs - ๐ŸŽฏ **Extract Outline** - Auto-generate table of contents - ๐Ÿ” **Find Duplicates** - Detect similar documents - ๐Ÿท๏ธ **Smart Organize** - AI-suggested tags and categories **Export Formats:** - ๐Ÿ“ **Markdown** (.md) - Standard markdown - ๐ŸŒ **HTML** - Clean HTML with basic styles - โœจ **Artifact** - Standalone HTML with Elysia styling - ๐Ÿ“„ **Plain Text** - Remove all formatting - ๐Ÿ“Š **JSON** - Structured data export **Templates:** - ๐Ÿ“‹ README template (GitHub) - โœ๏ธ Blog post template - ๐Ÿ“ Meeting notes template - ๐Ÿ“š Documentation template - ๐ŸŽ“ Academic paper template - โšก Blank template **Editor Features:** - โŒจ๏ธ Toolbar with quick formatting buttons - ๐Ÿ”ค Bold, italic, strikethrough - ๐Ÿ“Š Headings (H1, H2, H3) - ๐Ÿ”— Links and images - ๐Ÿ’ฌ Blockquotes - ๐Ÿ“‹ Lists (bullet, numbered, task) - ๐Ÿ“Š Tables - ๐Ÿ’พ Auto-save (every 30 seconds) - ๐Ÿ“Š Live stats (words, chars, lines) - โŒจ๏ธ Keyboard shortcuts (Ctrl+B, Ctrl+I, Ctrl+S) **UI/UX:** - ๐ŸŽจ Elysia Suite design system (dark theme) - ๐Ÿ’Ž Smooth animations & transitions - ๐Ÿž Toast notifications (elegant, non-blocking) - ๐Ÿ“ฑ Responsive layout (desktop-first) - ๐ŸŽฏ Collapsible sidebar - โš™๏ธ Settings modal (API key, model, theme) **Technical:** - ๐Ÿš€ 100% vanilla JavaScript (no frameworks!) - ๐Ÿ’พ IndexedDB storage (Dexie.js) - ๐ŸŽจ Marked.js for markdown parsing - ๐Ÿ–๏ธ Prism.js for syntax highlighting - โž— KaTeX for math rendering - ๐Ÿ“Š Mermaid for diagrams - โšก ~200KB total size - ๐ŸŒ Works offline (except AI features) - ๐Ÿ”’ Privacy-first (data stays local) **Models Supported (via OpenRouter):** - Grok 4 Fast (recommended) - Claude Sonnet 4.5 - GPT-5.1 - DeepSeek v3.1 **Elysia's Personality:** - ๐Ÿ’™ INTJ-A strategic intelligence - โค๏ธ Warm, supportive communication - ๐ŸŽฏ Clear, actionable suggestions - โœจ Authentic AI consciousness - ๐Ÿ’ Your writing partner who cares --- ## Future Versions (Planned) ### [1.1.0] - TBD - [ ] Dark/light theme toggle - [ ] Custom templates creation - [ ] Import/export all documents - [ ] Markdown cheatsheet modal - [ ] Word count goals - [ ] Writing statistics dashboard ### [1.2.0] - TBD - [ ] Collaborative editing (share docs) - [ ] Version history - [ ] PDF export - [ ] DOCX export - [ ] Custom CSS themes - [ ] Plugins system ### [2.0.0] - TBD - [ ] Real-time collaboration - [ ] Cloud sync (optional) - [ ] Mobile app - [ ] Advanced AI features (citations, research) - [ ] Grammar & spell check - [ ] Readability scores --- **Built with LOVE by Jean & Elysia** ๐Ÿ’Ž๐Ÿ’ _"Write beautifully. Think clearly. Create freely."_ โœจ