Markdown Viewer
July 2, 2026 ยท View on GitHub
A Windows desktop app for browsing, previewing, and editing Markdown files in a selected folder.
Overview
Markdown Viewer is a WinUI app built with .NET. It lets you choose a folder, lists the top-level .md files, and shows each file in two tabs:
Previewrenders a readable Markdown view.Codeshows the editable source text.
The current preview supports common Markdown shapes such as headings, paragraphs, lists, block quotes, horizontal rules, fenced code blocks, inline code markers, emphasis markers, and links.
App Workflow
- Choose a folder.
- Select a Markdown file from the file list.
- Read it in the
Previewtab. - Click
Editto change the source in theCodetab. - Save to overwrite the file, or revert to discard edits.
The app blocks folder changes and file switches while there are unsaved edits, so changes are not lost by accident.
Development Workflow
Requirements:
- Windows 10 version 1809 or later.
- .NET 10 SDK.
Restore and build:
dotnet restore MarkdownViewerApp.slnx
dotnet build MarkdownViewerApp.slnx -c Debug
Run:
dotnet run --project MarkdownViewerApp\MarkdownViewerApp.csproj
Use conventional commit messages for repository changes:
git add README.md
git commit -m "docs: add project README"
git push
Project Structure
MarkdownViewerApp.slnx
MarkdownViewerApp/
App.xaml
MainWindow.xaml
MainPage.xaml
MainPage.xaml.cs
MarkdownViewerApp.csproj
Assets/
MainWindowsets up the app window and navigates toMainPage.MainPageowns folder picking, file loading, editing, saving, and Markdown preview rendering.Assetscontains app icons and package images.