API Reference
MarkdownRendererPresets
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, Boolean enableCopyButtons = true) #VoidApplies 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 System.Boolean = true
public static Void ApplyPortableHtmlOutputProfile(MarkdownRendererOptions options) #VoidApplies 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) #MarkdownRendererOptionsStrict preset for the explicit IntelligenceX transcript rendering contract. This is the preferred first-class name for the OfficeIMO-hosted IX transcript surface.
Parameters
- baseHref System.String = null
public static MarkdownRendererOptions CreateIntelligenceXTranscript(MarkdownDialectProfile readerProfile, String baseHref = null) #MarkdownRendererOptionsStrict preset for the explicit IntelligenceX transcript rendering contract using an explicit reader profile.
Parameters
- readerProfile OfficeIMO.Markdown.MarkdownReaderOptions.MarkdownDialectProfile
- baseHref System.String = null
public static MarkdownRendererOptions CreateIntelligenceXTranscriptDesktopShell(String baseHref = null) #MarkdownRendererOptionsStrict 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 System.String = null
public static MarkdownRendererOptions CreateIntelligenceXTranscriptDesktopShell(MarkdownDialectProfile readerProfile, String baseHref = null) #MarkdownRendererOptionsStrict desktop-shell preset for the explicit IntelligenceX transcript contract using an explicit reader profile.
Parameters
- readerProfile OfficeIMO.Markdown.MarkdownReaderOptions.MarkdownDialectProfile
- baseHref System.String = null
public static MarkdownRendererOptions CreateIntelligenceXTranscriptMinimal(String baseHref = null) #MarkdownRendererOptionsStrict 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 System.String = null
public static MarkdownRendererOptions CreateIntelligenceXTranscriptMinimal(MarkdownDialectProfile readerProfile, String baseHref = null) #MarkdownRendererOptionsStrict minimal preset for the explicit IntelligenceX transcript rendering contract using an explicit reader profile.
Parameters
- readerProfile OfficeIMO.Markdown.MarkdownReaderOptions.MarkdownDialectProfile
- baseHref System.String = null
public static MarkdownRendererOptions CreateIntelligenceXTranscriptMinimalPortable(String baseHref = null) #MarkdownRendererOptionsStrict 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 System.String = null
public static MarkdownRendererOptions CreateIntelligenceXTranscriptPortable(String baseHref = null) #MarkdownRendererOptionsStrict 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 System.String = null
public static MarkdownRendererOptions CreateIntelligenceXTranscriptRelaxed(String baseHref = null) #MarkdownRendererOptionsRelaxed 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 System.String = null
public static MarkdownRendererOptions CreateIntelligenceXTranscriptRelaxed(MarkdownDialectProfile readerProfile, String baseHref = null) #MarkdownRendererOptionsRelaxed preset for trusted or controlled IntelligenceX transcript content using an explicit reader profile.
Parameters
- readerProfile OfficeIMO.Markdown.MarkdownReaderOptions.MarkdownDialectProfile
- baseHref System.String = null
public static MarkdownRendererOptions CreateRelaxed(String baseHref = null) #MarkdownRendererOptionsRelaxed 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 System.String = null
public static MarkdownRendererOptions CreateRelaxed(MarkdownDialectProfile readerProfile, String baseHref = null) #MarkdownRendererOptionsRelaxed preset for trusted or controlled generic markdown hosting using an explicit reader profile.
Parameters
- readerProfile OfficeIMO.Markdown.MarkdownReaderOptions.MarkdownDialectProfile
- baseHref System.String = null
public static MarkdownRendererOptions CreateStrict(String baseHref = null) #MarkdownRendererOptionsStrict 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 System.String = null
public static MarkdownRendererOptions CreateStrict(MarkdownDialectProfile readerProfile, String baseHref = null) #MarkdownRendererOptionsStrict 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.MarkdownReaderOptions.MarkdownDialectProfile
- baseHref System.String = null
public static MarkdownRendererOptions CreateStrictMinimal(String baseHref = null) #MarkdownRendererOptionsStrict 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 System.String = null
public static MarkdownRendererOptions CreateStrictMinimal(MarkdownDialectProfile readerProfile, String baseHref = null) #MarkdownRendererOptionsStrict minimal preset for generic untrusted markdown hosting using an explicit reader profile.
Parameters
- readerProfile OfficeIMO.Markdown.MarkdownReaderOptions.MarkdownDialectProfile
- baseHref System.String = null
public static MarkdownRendererOptions CreateStrictMinimalPortable(String baseHref = null) #MarkdownRendererOptionsStrict minimal preset for generic untrusted markdown hosting with the portable reader profile enabled.
Parameters
- baseHref System.String = null
public static MarkdownRendererOptions CreateStrictPortable(String baseHref = null) #MarkdownRendererOptionsStrict 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 System.String = null
Inherited Methods
public override Boolean Equals(Object obj) #BooleanParameters
- obj Object