-
Notifications
You must be signed in to change notification settings - Fork 18
How to migrages to ver11
Several properties have been deprecated in Markdown.Avalonia version 11.0.0-d2 and above. This article. This page describes how to migrate deprecated codes.
The BitmapLoader
has been deprecated to separate the features to control the resolution of image resources and add image formats; IPathResolver
and IImageResolver
.
IPathResolver
is provided to control the acquisition of image resources.
IImageResolver
is provided to resolve image format.
The project provides two packages, one with a minimum of dependent libraries (Markdown.Avalonia.Tight) and one with all plugins added (Markdown.Avalonia).
Markdown.Avalonia.Tight depends minimum libraries.
For use it, indicate
Markdown.Avalonia.Tight
package in csproj and specify https://github.com/whistyun/Markdown.Avalonia.Tight
in xml namespace.
csproj
<ItemGroup>
<PackageReference Include="Markdown.Avalonia.Tight" Version="$(version)" />
</ItemGroup>
xaml
<Window xmlns="https://github.com/avaloniaui"
xmlns:md="https://github.com/whistyun/Markdown.Avalonia.Tight"
>
...
</Window>
Markdown.Avalonia depends maximum libraries. It installs all plugins provided by this project.
For use it, indicate
Markdown.Avalonia
package in csproj and specify https://github.com/whistyun/Markdown.Avalonia
in xml namespace.
For compatibility reasons, the clr namespace is Markdown.Avalonia.Full
.
csproj
<ItemGroup>
<PackageReference Include="Markdown.Avalonia" Version="$(version)" />
</ItemGroup>
xaml
<Window xmlns="https://github.com/avaloniaui"
xmlns:md="https://github.com/whistyun/Markdown.Avalonia"
>
...
</Window>