From bfad66d24e206be7e00abb1e84f6122a813b24b1 Mon Sep 17 00:00:00 2001 From: Jacob Cole Date: Wed, 11 Mar 2026 07:26:54 -0600 Subject: [PATCH] feat: add Milkdown as default WYSIWYG editor with EasyMDE fallback - Add Milkdown as the default rich editor engine (true WYSIWYG) - Keep EasyMDE as an alternative option for users who prefer it - Add "Rich Editor Engine" submenu in Settings to switch between editors - Pre-bundle Milkdown with esbuild for reliable dependency resolution - Add Milkdown-specific styles that match the app's dark/light theme - Editor engine preference is saved to config and restored on launch Milkdown provides a true WYSIWYG experience where formatting is rendered inline (bold text appears bold, etc.), while EasyMDE shows markdown syntax with styling hints. Users can switch between them via Settings menu. Co-Authored-By: Claude Opus 4.5 --- index.html | 2 + main.js | 29 + milkdown-bundle.js | 59 ++ milkdown-entry.js | 69 +++ package-lock.json | 1390 ++++++++++++++++++++++++++++++++++++++------ package.json | 4 + renderer.js | 237 +++++--- styles.css | 183 ++++++ 8 files changed, 1712 insertions(+), 261 deletions(-) create mode 100644 milkdown-bundle.js create mode 100644 milkdown-entry.js diff --git a/index.html b/index.html index 62f213c..4d206d9 100644 --- a/index.html +++ b/index.html @@ -244,6 +244,7 @@

OpenMarkdownReader