Lightweight Avalonia-based Markdown renderer with incremental/stream rendering, LaTeX math and syntax highlighting.
$ dotnet add package LiveMarkdownA lightweight Avalonia control for rendering Markdown in .NET 8 applications. LiveMarkdown focuses on high-quality visual rendering, streaming/incremental preview scenarios and consistent theming (including LaTeX formula color enforcement).
fenced code block with language mermaid as an inline diagram$...$)$$...$$)Generic.axaml (e.g. .md-heading, .md-paragraph, .md-code-block, .md-quote, .md-list, .md-table)Text (string) � Markdown content to renderContentForeground / alias Foreground (IBrush) � color for already-rendered contentLiveContentForeground / alias LiveForeground (IBrush) � color for the currently incoming chunkxmlns:lm="clr-namespace:LiveMarkdown.Controls;assembly=LiveMarkdown"
<!-- Rendered content white, live incoming chunk purple -->
<lm:MarkdownView Text="{Binding MarkdownText}"
Foreground="White"
LiveForeground="#a94dc1" />
<!-- Live stream example using resources -->
<lm:MarkdownView Text="{Binding LiveMarkdownText}"
Foreground="{StaticResource BrushTextPrimary}"
LiveForeground="{StaticResource ButtonBorderBrush}" />
Exact package versions are listed in LiveMarkdown.csproj.
dotnet restoredotnet build<StyleInclude Source="avares://LiveMarkdown/Themes/Generic.axaml" />
<lm:MarkdownView Text="{Binding MarkdownText}" />LiveMarkdown is licensed under the Apache License 2.0. See the LICENSE file for details.