Flagship example · Local first · Native Windows

Write Markdown. Keep it local.

A focused Markdown editor that combines real HWND UI, Scintilla editing, an offline WebView2 preview, GitHub-flavored Markdown, safe atomic saves, and crash recovery.

MWFL Markdown Editor with native document tabs
The flagship application uses native document tabs and switches Edit and offline Preview in one focused workspace.
EditorScintilla 5.6.5
Markdownmd4c 0.5.2, GitHub dialect
PreviewOffline WebView2
SafetyAtomic save and recovery
Why it matters

A real application, not a control gallery.

The example composes optional dependencies behind explicit ownership. Lexilla colors Markdown headings, emphasis, links, lists, quotes, and code in coordinated light and dark editor themes. It also handles New/Open/Save/Save As, stale-file rejection, unsaved-close decisions, menus, accelerators, find and replace, window placement, and a delayed recovery copy.

The Markdown renderer disables raw HTML, filters rendered URL schemes, applies a restrictive Content Security Policy, resolves document-relative images, and never requires a CDN or uploads document text.

Build

Compile, test, and stage the product.

git clone https://github.com/mwfl/markdown-editor.git
cd markdown-editor
cmake --preset vs2026-x64
cmake --build --preset vs2026-x64-release
ctest --preset vs2026-x64-release

The staged component contains the executable, pinned Scintilla and Lexilla runtimes with their license, and the md4c MIT license. WebView2 uses Microsoft's Evergreen Runtime and fails gracefully when unavailable.