Menu

1 / 2

How I Rendered Mermaid & Math Markdown in Windows Explorer in 0.86s (No PowerToys, No Admin)

DEV Community: dotnet·Zhanibek Nugmanov·7 days ago
#yRulvipG
#devtodotnet#devto#dev#preview#windows
Long article (848 words) — no AI summary yet.
Reading 0:00
15s threshold

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] /…

Continue reading — create a free account

Join HashtagPLUS to read full articles, follow hashtags, vote, and join the conversation.