Writing tool / WPF desktop03

Markdown Editor

A calm Markdown editor for writing, previewing, and managing drafts inside a disciplined Windows interface.

Markdown 编辑器Windows 写作实时预览分屏模式自动保存瑞士风格 UI

Sermon is a Windows Markdown editor built with WPF and .NET 10. It favors clear grids, black-white-gray hierarchy, red structural emphasis, low-decoration controls, and readable typography for technical documents, blog drafts, sermon notes, and daily writing.

Sermon cover
Runtime.NET 10
UIWPF
PreviewWebView2
Autosave2 min

/home/lry/Projects/CsRepo/Sermon

.NET 10WPFMahApps.MetroMaterial IconPacksAvalonEditMarkdigWebView2XAML

01 / Writing modes

Edit, preview, and split modes support different phases of Markdown writing.

Sermon provides focused editing with syntax highlighting, realtime HTML preview, and a split mode that keeps the source and rendered document visible together. Preview refresh is debounced to reduce repeated rendering while typing.

02 / File workflow

The editor treats document management as part of the writing surface.

New, open, save, save as, folder browsing, tree navigation, multi-tab editing, unsaved-state indicators, and two-minute autosave create a practical local writing workflow instead of a single-buffer text box.

03 / Desktop architecture

WPF, AvalonEdit, Markdig, and WebView2 split the editor into reliable desktop responsibilities.

AvalonEdit handles text editing and Markdown syntax color, Markdig converts Markdown into HTML, WebView2 renders the preview, MahApps.Metro supplies the window frame and Material icons, and RelayCommand keeps toolbar and shortcut actions bound to UI state.
01

Supports standard Markdown and extended syntax including tables, code blocks, and strikethrough.

02

Includes formatting buttons, Ctrl+B, Ctrl+I, Ctrl+F, Ctrl+H, and common file shortcuts.

03

Shows word count and cursor position in a restrained low-contrast status bar.

04

Targets Windows 10/11 with .NET Desktop Runtime and WebView2 Runtime.

05

Provides both framework-dependent and self-contained win-x64 publish paths.