Convenience extension methods for enabling opt-in Markdig features on a MarkdownViewer. Each method rebuilds the pipeline from UseGitHubExtensions(MarkdownPipelineBuilder, MarkdownExtensionsOptions?) (the viewer's default pipeline) plus the requested feature. To combine multiple opt-in features, build the pipeline explicitly:
viewer.Pipeline = new MarkdownPipelineBuilder()
.UseGitHubExtensions()
.UseAbbreviations()
.UseFigures()
.Build();
public static class MarkdownViewerExtensions
kind:method, kind:property, kind:ctor. Press Esc to clear.UseAbbreviations(MarkdownViewer)Enables abbreviation tooltip rendering on the viewer.UseAlertBlocks(MarkdownViewer)Enables the alert extras on the viewer: foldable alerts and custom titles. GitHub-style alerts themselves are already part of the default pipeline.UseCitations(MarkdownViewer)Enables citation rendering (""quoted text"") on the viewer.UseFigures(MarkdownViewer)Enables figure block rendering on the viewer.UseFootnotes(MarkdownViewer)Enables footnote rendering on the viewer. Footnotes are already part of the default pipeline, so this only matters to restore the default after another pipeline was set.UseHardlineBreaks(MarkdownViewer)Enables hardline-break rendering on the viewer: every soft line break renders as an explicit line break instead of collapsing to a space.UseMediaLinks(MarkdownViewer)Enables YouTube thumbnail embed rendering on the viewer.UseThinkingBlocks(MarkdownViewer, ThinkingBlockOptions?)Shows a language model's reasoning (<think>…</think>) in a block that folds away, as UseThinkingBlocks(MarkdownPipelineBuilder, ThinkingBlockOptions?) describes.