mdviewer 1.1.0

dotnet add package mdviewer --version 1.1.0
                    
NuGet\Install-Package mdviewer -Version 1.1.0
                    
This command is intended to be used within the Package Manager Console in Visual Studio, as it uses the NuGet module's version of Install-Package.
<PackageReference Include="mdviewer" Version="1.1.0" />
                    
For projects that support PackageReference, copy this XML node into the project file to reference the package.
<PackageVersion Include="mdviewer" Version="1.1.0" />
                    
Directory.Packages.props
<PackageReference Include="mdviewer" />
                    
Project file
For projects that support Central Package Management (CPM), copy this XML node into the solution Directory.Packages.props file to version the package.
paket add mdviewer --version 1.1.0
                    
#r "nuget: mdviewer, 1.1.0"
                    
#r directive can be used in F# Interactive and Polyglot Notebooks. Copy this into the interactive tool or source code of the script to reference the package.
#:package mdviewer@1.1.0
                    
#:package directive can be used in C# file-based apps starting in .NET 10 preview 4. Copy this into a .cs file before any lines of code to reference the package.
#addin nuget:?package=mdviewer&version=1.1.0
                    
Install as a Cake Addin
#tool nuget:?package=mdviewer&version=1.1.0
                    
Install as a Cake Tool

MdViewer

<img src="img/MdViewer.png" width="162px" align="right"/>

Lightweight (~628 KB) WPF Markdown viewer control for .NET 10.

MdViewer is a small WPF UserControl that converts Markdown to HTML (via Markdig) and displays it using the built-in WebBrowser control.

<br />

Features

  • Render Markdown to styled HTML
  • Simple Content property to set Markdown text
  • External http/https links open in the default browser
  • Temporary HTML is removed when the control is disposed

Quick start

You can view a sample app in tests/MdViewer.SampleApp.

Steps to add MdViewer to your project:

  1. Add the namespace reference:

    xmlns:md="clr-namespace:MdViewer;assembly=MdViewer"
    
  2. Insert the control where you want to display Markdown (suggested FontSize: 16):

    <md:Markdown x:Name="MdViewer" FontSize="16" />
    

    You can also set FontFamily.

  3. Load Markdown by setting the Content property:

    MdViewer.Content = "# Hello, Markdown!";
    
  4. Call Dispose() when the window is closed to clean up the temporary file:

    protected override void OnClosed(EventArgs e) {
        base.OnClosed(e);
        MdViewer.Dispose();
    }
    

Screenshot

screenshot

Dependencies & license

Product Compatible and additional computed target framework versions.
.NET net10.0-windows7.0 is compatible. 
Compatible target framework(s)
Included target framework(s) (in package)
Learn more about Target Frameworks and .NET Standard.

NuGet packages

This package is not used by any NuGet packages.

GitHub repositories (1)

Showing the top 1 popular GitHub repositories that depend on mdviewer:

Repository Stars
King-zzk/Steam-Workshops-Tools-SWTools
Steam创意工坊下载文件工具
Version Downloads Last Updated
1.1.0 537 12/13/2025
1.0.0 522 11/15/2025