How jungkhyun/ezmarkdown works
EzMarkDown is a portable Markdown viewer/editor with both a standalone browser experience and a Windows desktop host. The main workflow is opening or dropping a Markdown file, viewing or editing it, then saving changes; the README also documents preview/split/edit modes, Mermaid rendering, TOC navigation, themes, and multiple windows. The sampled Program.cs shows desktop instance/window management and file loading into WebView2. Front-end internals are not sampled, so their documented capabilities are represented at the index.html level.
Main entry points: Program.cs Desktop host · index.html Markdown preview
Components 14
Windows desktop
- Desktop host
Program.cs - Multi-window routing
Program.cs - WebView2 surface
Program.cs
Web experience
- Browser app
index.html
Document features
- Markdown editor
index.html - View modes
index.html - Markdown preview
index.html - Mermaid diagrams
index.html - TOC navigation
index.html - Theme switching
index.html
Local state
- Markdown files
- Window bounds
Program.cs
Other components
- Reader/editor
- WebView2 runtime
Connections 17
- Reader/editor → Desktop host: opens desktop
README.md - Reader/editor → Browser app: opens browser app
README.md - Desktop host → Multi-window routing: routes launch
Program.cs - Multi-window routing → WebView2 surface: creates window
Program.cs - WebView2 surface → WebView2 runtime: initializes
Program.cs - WebView2 surface → Markdown editor: sends opened text
Program.cs - Reader/editor → Markdown files: selects or drops
README.md - Desktop host → Markdown files: reads and saves
README.md - Browser app → Markdown editor: opens dropped files
README.md - Markdown editor → View modes: switches modes
README.md - View modes → Markdown preview: shows rendered text
README.md - Markdown preview → Mermaid diagrams: renders diagrams
README.md - Markdown preview → TOC navigation: builds navigation
README.md - Markdown preview → Theme switching: synchronizes colors
README.md - Markdown editor → Markdown files: saves edits
README.md - Desktop host → Window bounds: stores bounds
Program.cs - Window bounds → Desktop host: restores bounds
Program.cs