The same text renders the same way in both front ends, with no extra syntax packages to install
This post is based on version 0.3.1. The packages are still 0.x, so a minor release may still change the API; any change will be noted in the CHANGELOG .
Polhem.Markdown is a set of Markdown packages for .NET. It provides two components each for Avalonia and Blazor:
MarkdownViewer : displays Markdown, with support for GitHub Flavored Markdown, syntax highlighting, Mermaid diagrams and math.
MarkdownEditor : edits the Markdown source, with a MarkdownViewer next to it for a live preview.
My project has Avalonia desktop and mobile apps as well as a Blazor web front end, and both need to display Markdown replies from AI. My first plan was to pick an existing package for each side. But two packages parse on their own and decide on their own how things look, so the same text ends up looking different in the two front ends, and the security rules have to be written twice.…