Skip to content

Comparison

Porohkun edited this page Oct 23, 2026 · 14 revisions

English | Русский

How the viewer compares with other ways to show Markdown in a WPF application. The facts come from the public documentation, package pages and source code of each project and of WPF, checked on 17 October 2026; the links are below. «Not stated» means the documentation says nothing about it, not that the feature is missing. If something here is wrong or out of date, please open an issue.

The ways to show Markdown in WPF:

  • WPF elements: a text block for a paragraph, a grid for a table — this viewer, MarkdownViewer.Wpf, MarkdownWPF.
  • One FlowDocument in a FlowDocumentScrollViewer — MdXaml, Markdig.Wpf, WpfMarkdown, DotNetElements.Wpf.Markdown.
  • Lines drawn by the control itself with TextFormatter, without an element per Markdown element — WpfMarkdownViewer.
  • A commercial control — Syncfusion SfMarkdownViewer.
  • A browser — Markdig turns the text into HTML, WebView2 shows it.

Where this viewer is stronger

  • Only the visible blocks get WPF elements. A FlowDocumentScrollViewer lays out the whole document as one endless page and draws only the visible part; MarkdownWPF creates elements for all blocks and, in its own scrolling, lays out only the visible ones; the viewer does not create or lay out the blocks out of view at all. That is what keeps a long document or a list of messages fast.
  • It lives in your scrolling. The viewer has no scroll bars of its own: it stands on a page next to other content or in a virtualized list and still creates only the visible blocks. A FlowDocumentScrollViewer is a scrolling control itself; MarkdownWPF can turn its own scrolling off, but then lays out all blocks.
  • A new text is applied as edits. MdXaml, Markdig.Wpf, MarkdownWPF, WpfMarkdown and DotNetElements.Wpf.Markdown build the document from the whole text on every change; the viewer keeps the unchanged blocks, the selection and the scroll position — fit for a live preview and streamed answers.
  • Copying gives Markdown. The clipboard gets plain text, Markdown and HTML at once; from a FlowDocument WPF copies plain text, RTF and XAML, WpfMarkdown copies only plain text, and MarkdownWPF and DotNetElements.Wpf.Markdown do not select text at all.
  • It knows the source. Source line numbers, scrolling to a line, an editor kept in step; two panes of a diff scrolled together or aligned, with empty places opposite the changes.
  • It marks the text. Layers of marks — fills, lines, frames, rows across the width, bars and icons in the margin — that can follow a new text, and a search that marks the matches and steps through them while the search field stays yours.
  • It tells where the text is on the screen. The rectangles of any piece of text and the position of any source line, in the coordinates of the viewer or of any element of yours, and an event when the layout changes: draw your own buttons next to the text, or bands between two panes that join the changed parts, as diff tools do.
  • Syntax of other programs is ready. GitHub, GitLab, Obsidian, MkDocs, Docusaurus, HackMD and chats are connected as sets in one line, and your own syntax is an extension.
  • It edits where it draws. The editor from the second package shows the source of the blocks under the caret in AvalonEdit, and the rest of the document stays drawn — see Editor.

Where others are stronger

  • MdXaml and Markdig.Wpf run on .NET Framework, their FlowDocument is a document WPF can print, and FlowDocumentScrollViewer has a find dialog of its own. MdXaml highlights code with AvalonEdit and spans table cells.
  • WpfMarkdown runs on .NET Framework too, its FlowDocument is a document WPF can print, and its FlowDocumentScrollViewer has a find dialog of its own; besides, it highlights code, draws formulas with WpfMath and saves a code block to a file.
  • DotNetElements.Wpf.Markdown runs on .NET 9 and highlights code.
  • MarkdownWPF runs on .NET Framework 4.7.2 and .NET 8.
  • WpfMarkdownViewer draws formulas, Mermaid diagrams and SVG and highlights code through plugins, and has a ready chat shell.
  • Syncfusion SfMarkdownViewer comes with commercial support and a large suite of controls, and loads Markdown from a file or an address by itself.
  • A browser shows any HTML and CSS and draws formulas and diagrams with JavaScript libraries. The price is the WebView2 Runtime with its own processes; WPF elements cannot be drawn over the ordinary WebView2 control, only over WebView2CompositionControl.
  • This viewer needs .NET 7 or later and has no formulas, diagrams or printing out of the box: they are left to extensions. Code is highlighted by the AvalonEdit highlighter from the editor package or by a highlighter of yours.

The project

How it draws Parser License .NET State in October 2026
This viewer WPF elements Markdig MIT .NET 7+ 0.9.0
MarkdownViewer.Wpf WPF elements Markdig MIT .NET 10 2.0.4368
MarkdownWPF WPF elements in a VirtualizingStackPanel Markdig MIT .NET Framework 4.7.2+, .NET 8 1.1.4 of June 2026
MdXaml a FlowDocument its own, from Markdown.Xaml MIT .NET Framework 4.5+, .NET Core 3.0+, .NET 6 1.27.0 of February 2024, 2.0 in preview
Markdig.Wpf a FlowDocument Markdig MIT .NET Framework 4.5.2+, .NET Core 3.1, .NET 5 archived in March 2024
WpfMarkdown a FlowDocument Markdig MIT .NET Framework 4.6.2+, .NET 6, .NET 8, .NET 10 1.0.0 of July 2026
DotNetElements.Wpf.Markdown a FlowDocument Markdig MIT .NET 9 0.4.0 of December 2024
WpfMarkdownViewer draws the lines itself with TextFormatter Markdig MIT .NET 10 0.1.0-preview.1
Syncfusion SfMarkdownViewer not stated the Syncfusion.Markdown package commercial; free community license for small companies .NET Framework 4.6.2+, .NET 8 35.1.40, new in 2026
WebView2 + Markdig HTML in the Edge engine Markdig needs the WebView2 Runtime — —

A long document

Blocks out of view Scrolling A new text
This viewer not created yours: on a page, in a list applied as edits, also in chunks from any thread — Live Preview
MarkdownViewer.Wpf not stated not stated not stated
MarkdownWPF created; not laid out in its own scrolling, laid out in yours its own, or yours with IsScrollViewerEnabled off the whole text again
MdXaml laid out, not drawn its own the whole text again
Markdig.Wpf laid out, not drawn its own the whole text again
WpfMarkdown laid out, not drawn its own the whole text again
DotNetElements.Wpf.Markdown laid out, not drawn its own the whole text again
WpfMarkdownViewer not created, also across messages not stated streamed into the last block
Syncfusion SfMarkdownViewer not stated not stated not stated
WebView2 + Markdig laid out by the browser the browser's own up to your scripts

Selection and search

Selection across blocks Copying Search
This viewer yes plain text, Markdown, HTML marks the matches and steps through them — Marks and Search; the editor also replaces in the source
MarkdownViewer.Wpf not stated not stated not stated
MarkdownWPF no: the text is in TextBlocks no not stated
MdXaml yes plain text, RTF, XAML the find dialog of WPF
Markdig.Wpf yes plain text, RTF, XAML the find dialog of WPF
WpfMarkdown yes plain text the find dialog of WPF
DotNetElements.Wpf.Markdown no: its FlowDocumentScrollViewer is not focusable no not stated
WpfMarkdownViewer yes, also across messages Markdown as text not stated
Syncfusion SfMarkdownViewer not stated not stated not stated
WebView2 + Markdig yes plain text, HTML up to your scripts

Working with the application

Source lines and two panes Where the text is on the screen Link clicks Ticking tasks Editing
This viewer yes; two panes scroll together or line up — Source Lines and Two Panes rectangles of text and source lines, relative to any element — Coordinates an event, a command, its own opener yes, when switched on: the click is written into the source — Task Lists point edits; the editor — block by block or the whole text, see Editing
MarkdownViewer.Wpf not stated not stated its own navigator not stated not stated; its sample has an editor beside it
MarkdownWPF not stated not stated no: it opens web and mail links itself no: the check box is disabled not stated; its sample has an editor beside it
MdXaml not stated character positions via GetCharacterRect of WPF a command not stated not stated
Markdig.Wpf not stated character positions via GetCharacterRect of WPF not stated not stated not stated
WpfMarkdown not stated character positions via GetCharacterRect of WPF no: it opens links itself no no, read-only by design
DotNetElements.Wpf.Markdown not stated not stated an event no: the check box ignores clicks not stated; its sample has an editor beside it
WpfMarkdownViewer not stated not stated not stated not stated not stated
Syncfusion SfMarkdownViewer not stated not stated an event that can cancel not stated not stated
WebView2 + Markdig up to your scripts up to your scripts navigation events of WebView2 up to your scripts with a JavaScript editor

Look and extensions

Look Your own syntax Copy button of a code block
This viewer resource keys, styles, block templates extensions: parser, model, template yes
MarkdownViewer.Wpf resource dictionaries own renderers yes
MarkdownWPF WPF styles by resource key Markdig extensions with renderers of their own no
MdXaml WPF styles plugins not stated
Markdig.Wpf not stated not stated not stated
WpfMarkdown light and dark themes, styles by resource key no yes, and a save-to-file button
DotNetElements.Wpf.Markdown a theme object of brushes, sizes and margins no, planned no
WpfMarkdownViewer a style record, light and dark plugins for code, formulas, SVG, Mermaid yes
Syncfusion SfMarkdownViewer style settings not stated not stated
WebView2 + Markdig CSS Markdig extensions and HTML up to your scripts

Markdown

Tables Task lists Footnotes Definition lists Callouts > [!NOTE]
This viewer yes, also grid tables and CSV yes yes yes yes
MarkdownViewer.Wpf yes yes not stated not stated not stated
MarkdownWPF yes yes no no no
MdXaml yes, with cell spans not stated not stated not stated not stated
Markdig.Wpf pipe and grid, partly yes not stated not stated not stated
WpfMarkdown yes, cells span columns no yes no no
DotNetElements.Wpf.Markdown pipe tables only yes no, planned no yes
WpfMarkdownViewer yes yes no, planned not stated not stated
Syncfusion SfMarkdownViewer yes not stated not stated not stated not stated
WebView2 + Markdig yes yes yes yes yes, with your CSS
HTML Code highlighting Formulas Mermaid diagrams Syntax of other programs
This viewer the tags of READMEs: <details>, <p align>, <img> and more yes: AvalonEdit or your own — Code Blocks shown as source shown as code ready-made extensions
MarkdownViewer.Wpf some not stated not stated not stated not stated
MarkdownWPF a separate package: tables, lists, images, inline tags no no shown as code not stated
MdXaml a separate package yes not stated not stated not stated
Markdig.Wpf not stated not stated not stated not stated not stated
WpfMarkdown a safe subset yes yes, WpfMath shown as code ::: containers
DotNetElements.Wpf.Markdown no, not planned yes no no emoji shortcodes
WpfMarkdownViewer a few inline tags yes, a plugin yes, a plugin yes, a plugin not stated
Syncfusion SfMarkdownViewer not stated not stated not stated not stated not stated
WebView2 + Markdig all with a script with a script with a script your Markdig extensions

Editing

The other components above show Markdown and have no editing mode of their own. Markdown editors for WPF exist, and they edit the source; besides this project, a component that edits Markdown right where it is drawn was not found. Editing Markdown comes in four forms:

Form What it is Where it is
A preview next to a source editor the source in a text editor, the drawn document next to it components: AvalonEdit, which has Markdown highlighting, and Rhizine.AvalonEdit.MarkdownEditor built on it — with any viewer here next to them; RichMarkdownPad — an editor with a WebView2 preview. An application on WPF: Markdown Monster, with its editor and preview in WebView2. This viewer applies every change as edits, so the preview does not jump — see Live Preview
Point edits a control inside the document changes its own piece of the source this viewer: a task box, folding, the fields of the properties card and the widgets of extensions write into the source once switched on — Task Lists, Media and Data; review changes are only shown
Editing the rendered document text is edited the way it looks, as in a word processor WPF edits a FlowDocument in a RichTextBox, but MdXaml, Markdig.Wpf, WpfMarkdown and DotNetElements.Wpf.Markdown do not say they turn an edited document back into Markdown
Editing block by block the block under the cursor shows its Markdown, the rest stays rendered applications: the live preview of Obsidian, Typora. A WPF component: the editor of this project — see Editor

The source of the edited blocks keeps the look of the drawing: headings keep their size, a table stands in its columns, code is highlighted as in the drawing, callouts, wiki links, tags, mentions and review marks keep their colors. The editor searches and replaces in the source, pastes HTML from the clipboard as Markdown, frames text with Ctrl+B and Ctrl+I, renumbers a numbered list and edits front matter by the types of its values — see Editor.

Sources

Beresta.Markdown.Wpf

Basics

Working with Text

Appearance

Integration

Editing

Your Own Syntax

Ready-made Extensions


По-русски

Основы

Работа с текстом

Оформление

Встраивание в приложение

Правка

Свой синтаксис

Готовые расширения

Clone this wiki locally