CodeWF.Avalonia.Markdown.Lite 12.1.6.9

dotnet add package CodeWF.Avalonia.Markdown.Lite --version 12.1.6.9
                    
NuGet\Install-Package CodeWF.Avalonia.Markdown.Lite -Version 12.1.6.9
                    
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="CodeWF.Avalonia.Markdown.Lite" Version="12.1.6.9" />
                    
For projects that support PackageReference, copy this XML node into the project file to reference the package.
<PackageVersion Include="CodeWF.Avalonia.Markdown.Lite" Version="12.1.6.9" />
                    
Directory.Packages.props
<PackageReference Include="CodeWF.Avalonia.Markdown.Lite" />
                    
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 CodeWF.Avalonia.Markdown.Lite --version 12.1.6.9
                    
#r "nuget: CodeWF.Avalonia.Markdown.Lite, 12.1.6.9"
                    
#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 CodeWF.Avalonia.Markdown.Lite@12.1.6.9
                    
#: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=CodeWF.Avalonia.Markdown.Lite&version=12.1.6.9
                    
Install as a Cake Addin
#tool nuget:?package=CodeWF.Avalonia.Markdown.Lite&version=12.1.6.9
                    
Install as a Cake Tool

CodeWF.Avalonia.Markdown.Lite

Markdown 渲染基础包:基于 Avalonia 与 Markdig 的解析渲染引擎,只渲染常规元素(标题/段落/列表/引用/表格/链接/代码块单色/图片替代文本/公式原文),内置 18 套排版主题。Markdown rendering engine with built-in typography themes, no heavy capability dependencies.

NuGet License

安装

dotnet add package CodeWF.Avalonia.Markdown.Lite

依赖 Avalonia、Markdig 与 CodeWF.Avalonia.Lang(随包自动安装),不引入 SkiaSharp 等重组件;目标框架 net11.0,XAML 命名空间 https://codewf.com(前缀约定 markdown)。

主题接入

<Application.Styles>
  <markdown:MarkdownThemes />
</Application.Styles>

排版主题共 18 套(Basic 为默认),经 MarkdownTypographyThemeRegistry 选择,OverrideTypographyResources 支持全局/局部运行时切换,无需重建控件。

核心能力

控件/组件 说明
MarkdownViewer 渲染视图:大纲面板(MarkdownOutlinePanel)、文内检索、选区与阅读位置保持,WindowedStackPanel 虚拟化长文档
MarkdownStreamingDocument 流式渲染:与 MarkdownStreamSegmenter / MarkdownTailRemender 配合做未完成语法的前端补全(remend),解析失败保留旧快照
MarkdownTypewriterStream / MarkdownStreamPacer 打字机流与节奏控制
MarkdownImageSourceLoader / MarkdownImageDiskCache 图片加载与磁盘缓存(安全白名单约束在加载器内)

图片、公式、Mermaid、代码高亮与导出等重组件能力在完整包 CodeWF.Avalonia.Markdown 中提供。

文档

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

NuGet packages (1)

Showing the top 1 NuGet packages that depend on CodeWF.Avalonia.Markdown.Lite:

Package Downloads
CodeWF.Avalonia.Markdown

Markdown 完整包:在 Lite 渲染引擎之上提供图片(GIF/SVG/预览)、数学公式、Mermaid 图表、TextMate 代码高亮、行内样式(span style 字号/前景色/背景色,含选区浮动条与可读性回退)、PNG/PDF/Word/公众号 HTML 导出,以及源码编辑器与单栏实时编辑(所见即所得)控件,并内置能力控件主题。Full Markdown package: images, math, mermaid, highlighting, inline span styles (font size / foreground / background with selection bar and readability fallback), export and editors on top of the Lite engine.

GitHub repositories

This package is not used by any popular GitHub repositories.

Version Downloads Last Updated
12.1.6.9 0 11/21/2026
12.1.6.5 123 11/16/2026
12.1.6.4 135 11/12/2026
12.1.6.3 132 11/11/2026
12.1.6.2 114 11/10/2026
12.1.6.1 100 11/10/2026
12.1.5.11 122 11/10/2026
12.1.5.10 113 11/10/2026
12.1.5.9 110 11/10/2026
12.1.5.8 117 11/9/2026
12.1.5.7 126 11/9/2026
12.1.5.6 139 11/9/2026
12.1.5.4 113 11/8/2026
12.1.5.3 105 11/8/2026
12.1.5.2 171 11/8/2026
12.1.5.1 93 11/8/2026
Loading failed