With AI coding agents generating PRDs, architecture specs, skills, and design notes all day, my folders are full of .md files with Mermaid diagrams and math formulas.
I just wanted to click a .md file in Windows Explorer, press Alt+P , and see it rendered — without opening VS Code every time or installing all of PowerToys. Microsoft PowerToys previews Markdown in Explorer, but it skips Mermaid diagrams and math (and blocks images by default).
So I built MdPreview — a free, open-source (MIT), fully offline Windows Explorer preview handler that installs per-user with no admin rights and renders diagrams in under a second.
Here's what it does and the 3 non-obvious Windows + WebView2 lessons that made it fast and safe.
What It Renders (100% Offline)
Mermaid diagrams (flowcharts, sequence diagrams, etc.) and KaTeX math ( $...$ / $$...$$ )
Syntax-highlighted code via highlight.js with auto-detection when no language tag is specified + Copy button
GitHub-flavored Markdown : tables, task lists, > [!NOTE] /…