MarkView.Avalonia

A Markdig-powered Markdown viewer control for Avalonia UI 12. It renders Markdown with native Avalonia controls, so it runs the same on Windows, macOS, Linux and in the browser.

dotnet add package MarkView.Avalonia

What it does

  • GitHub-flavoured Markdown out of the box: tables, task lists, alerts, footnotes, <details> and the HTML that READMEs use.
  • Built for AI chat: stream an answer as it arrives, fold a model's reasoning, and use a compact chat preset.
  • Code, images, diagrams and math: copy buttons and syntax highlighting, a zoomable lightbox, SVG, Mermaid and LaTeX, all in .NET.
  • Three presets that look like GitHub, a chat app or a documentation site, in light, dark and high contrast.
  • Selection, copy and find across the whole document, with copy as Markdown and HTML.
  • Accessible: keyboard navigation, screen reader roles, WCAG AA colours, right-to-left text.

Documentation

Get started: Getting started · Choosing packages · Upgrading to 12.4

Guides: Displaying documents · Markdown and the pipeline · Chat and AI answers · Streaming · Code blocks · Images and diagrams · Math · Themes and presets · Selection and copy · Find in document · Folding · Task lists · Accessibility · Right-to-left text · Custom extensions

Reference: MarkdownViewer · Markdown syntax · Style classes · Resource keys · Theme presets · Versioning