Application-wide defaults applied to every MarkdownViewer render pass.
Set these once at startup (e.g. in App.axaml.cs OnFrameworkInitializationCompleted).
public static class MarkdownViewerDefaults
// App.axaml.cs
MarkdownViewerDefaults.Pipeline = new MarkdownPipelineBuilder()
.UseGitHubExtensions()
.UseAbbreviations()
.Build();
MarkdownViewerDefaults.Extensions.Add(new SyntaxHighlightingExtension(theme));
kind:method, kind:property, kind:ctor. Press Esc to clear.ExtensionsExtensions applied to every MarkdownViewer render pass, before per-instance extensions. The same extension object must not appear in both this list and an instance's Extensions list; duplicate references are silently skipped.ImageCacheSizeThe memory, in bytes, of the loaded images kept in memory and shared by every MarkdownViewer, so that rendering an image again (a document edited and re-rendered, a viewer recreated) neither downloads nor decodes it again. A bitmap counts 4 bytes per pixel, and any other image as much as a bitmap of its size. Images are keyed by their resolved URL and the image loaders in use; the least recently used one is evicted first. An image heavier than a tenth of the size is not cached, so the cache always has room for ten images. 0 disables the cache. Defaults to 100 MB. Lowering it evicts the images beyond the new size.PipelineGlobal pipeline used by all MarkdownViewer instances that do not set their own Pipeline. If null, the built-in default pipeline (UseGitHubExtensions) is used.ClearImageCache()Removes every image from the cache sized by ImageCacheSize, e.g. after the images behind some URLs have changed. Images already shown stay; the next render loads them again.