MarkdownRendererPresets
OfficeIMO.MarkdownRenderer
Convenience factory methods and composition helpers for common markdown host scenarios. These are intentionally opinionated, but still fully configurable via MarkdownRendererOptions.
Inheritance
- object
- MarkdownRendererPresets
Methods
public static void ApplyChatPresentation(MarkdownRendererOptions options, bool enableCopyButtons = true) #Applies chat-oriented presentation defaults on top of an existing renderer preset. This only affects host presentation/chrome and copy-button UX; it does not change the security profile.
Parameters
- options OfficeIMO.MarkdownRenderer.MarkdownRendererOptions
- enableCopyButtons bool = true
public static void ApplyPortableHtmlOutputProfile(MarkdownRendererOptions options) #Applies portable HTML output fallbacks so OfficeIMO-only block chrome degrades to simpler generic HTML.
Parameters
- options OfficeIMO.MarkdownRenderer.MarkdownRendererOptions
public static MarkdownRendererOptions CreateIntelligenceXTranscript(string? baseHref = null) #Strict preset for the explicit IntelligenceX transcript rendering contract. This is the preferred first-class name for the OfficeIMO-hosted IX transcript surface.
Parameters
- baseHref string? = null
Returns
MarkdownRendererOptionspublic static MarkdownRendererOptions CreateIntelligenceXTranscript(MarkdownDialectProfile readerProfile, string? baseHref = null) #Strict preset for the explicit IntelligenceX transcript rendering contract using an explicit reader profile.
Parameters
- readerProfile OfficeIMO.Markdown.MarkdownLoadOptions.MarkdownDialectProfile
- baseHref string? = null
Returns
MarkdownRendererOptionspublic static MarkdownRendererOptions CreateIntelligenceXTranscriptDesktopShell(string? baseHref = null) #Strict desktop-shell preset for the explicit IntelligenceX transcript contract. This keeps the minimal chat-shell defaults while enabling the interactive visual surface required by the IntelligenceX desktop host.
Parameters
- baseHref string? = null
Returns
MarkdownRendererOptionspublic static MarkdownRendererOptions CreateIntelligenceXTranscriptDesktopShell(MarkdownDialectProfile readerProfile, string? baseHref = null) #Strict desktop-shell preset for the explicit IntelligenceX transcript contract using an explicit reader profile.
Parameters
- readerProfile OfficeIMO.Markdown.MarkdownLoadOptions.MarkdownDialectProfile
- baseHref string? = null
Returns
MarkdownRendererOptionspublic static MarkdownRendererOptions CreateIntelligenceXTranscriptMinimal(string? baseHref = null) #Strict minimal preset for the explicit IntelligenceX transcript rendering contract. This keeps the IX transcript semantics while minimizing client-side shell features by default.
Parameters
- baseHref string? = null
Returns
MarkdownRendererOptionspublic static MarkdownRendererOptions CreateIntelligenceXTranscriptMinimal(MarkdownDialectProfile readerProfile, string? baseHref = null) #Strict minimal preset for the explicit IntelligenceX transcript rendering contract using an explicit reader profile.
Parameters
- readerProfile OfficeIMO.Markdown.MarkdownLoadOptions.MarkdownDialectProfile
- baseHref string? = null
Returns
MarkdownRendererOptionspublic static MarkdownRendererOptions CreateIntelligenceXTranscriptMinimalPortable(string? baseHref = null) #Strict minimal preset for the explicit IntelligenceX transcript contract with the portable reader profile enabled. This combines the minimal shell-friendly renderer defaults with the stricter reader preset used for portability-sensitive hosts.
Parameters
- baseHref string? = null
Returns
MarkdownRendererOptionspublic static MarkdownRendererOptions CreateIntelligenceXTranscriptPortable(string? baseHref = null) #Strict preset for the explicit IntelligenceX transcript contract with the portable reader profile enabled. This disables OfficeIMO-only literal autolinks, callouts, and task-list parsing while keeping the same transcript security defaults.
Parameters
- baseHref string? = null
Returns
MarkdownRendererOptionspublic static MarkdownRendererOptions CreateIntelligenceXTranscriptRelaxed(string? baseHref = null) #Relaxed preset for trusted or controlled transcript content rendered in a WebView. - Allows HTML parsing but sanitizes raw HTML blocks (very conservative allowlist) - Allows external HTTP(S) images (unless further restricted via host/origin allowlists)
Parameters
- baseHref string? = null
Returns
MarkdownRendererOptionspublic static MarkdownRendererOptions CreateIntelligenceXTranscriptRelaxed(MarkdownDialectProfile readerProfile, string? baseHref = null) #Relaxed preset for trusted or controlled IntelligenceX transcript content using an explicit reader profile.
Parameters
- readerProfile OfficeIMO.Markdown.MarkdownLoadOptions.MarkdownDialectProfile
- baseHref string? = null
Returns
MarkdownRendererOptionspublic static MarkdownRendererOptions CreateRelaxed(string? baseHref = null) #Relaxed preset for trusted or controlled generic markdown hosting. - Allows HTML parsing but sanitizes raw HTML blocks - Allows external HTTP(S) images unless further restricted by the host
Parameters
- baseHref string? = null
Returns
MarkdownRendererOptionspublic static MarkdownRendererOptions CreateRelaxed(MarkdownDialectProfile readerProfile, string? baseHref = null) #Relaxed preset for trusted or controlled generic markdown hosting using an explicit reader profile.
Parameters
- readerProfile OfficeIMO.Markdown.MarkdownLoadOptions.MarkdownDialectProfile
- baseHref string? = null
Returns
MarkdownRendererOptionspublic static MarkdownRendererOptions CreateStrict(string? baseHref = null) #Strict preset for generic untrusted markdown hosting. - Disables block HTML parsing - Keeps the reader's safe inline tag subset for simple formatting tags - Strips any other raw HTML blocks and inline tags - Restricts URL schemes and blocks file/data/protocol-relative URLs - Blocks external HTTP(S) images unless same-origin with BaseHref/BaseUri
Parameters
- baseHref string? = null
Returns
MarkdownRendererOptionspublic static MarkdownRendererOptions CreateStrict(MarkdownDialectProfile readerProfile, string? baseHref = null) #Strict preset for generic untrusted markdown hosting using an explicit reader profile. This keeps the same security defaults while allowing hosts to target OfficeIMO, CommonMark, GitHub Flavored Markdown, or the portable OfficeIMO subset.
Parameters
- readerProfile OfficeIMO.Markdown.MarkdownLoadOptions.MarkdownDialectProfile
- baseHref string? = null
Returns
MarkdownRendererOptionspublic static MarkdownRendererOptions CreateStrictMinimal(string? baseHref = null) #Strict preset for generic untrusted markdown hosting with optional client-side renderers disabled. This disables Mermaid, charts, math, Prism, and copy-button helpers to minimize shell scripting.
Parameters
- baseHref string? = null
Returns
MarkdownRendererOptionspublic static MarkdownRendererOptions CreateStrictMinimal(MarkdownDialectProfile readerProfile, string? baseHref = null) #Strict minimal preset for generic untrusted markdown hosting using an explicit reader profile.
Parameters
- readerProfile OfficeIMO.Markdown.MarkdownLoadOptions.MarkdownDialectProfile
- baseHref string? = null
Returns
MarkdownRendererOptionspublic static MarkdownRendererOptions CreateStrictMinimalPortable(string? baseHref = null) #Strict minimal preset for generic untrusted markdown hosting with the portable reader profile enabled.
Parameters
- baseHref string? = null
Returns
MarkdownRendererOptionspublic static MarkdownRendererOptions CreateStrictPortable(string? baseHref = null) #Strict preset for generic untrusted markdown hosting with the portable reader profile enabled. This disables OfficeIMO-only literal autolinks, callouts, and task-list parsing while keeping the same security defaults.
Parameters
- baseHref string? = null
Returns
MarkdownRendererOptions