Skip to main content

Search OfficeIMO

Enter a topic, API type, or PowerShell command.

Documentation Search all OfficeIMO/
Class

MermaidOptions

OfficeIMO.MarkdownRenderer

Namespace
OfficeIMO.MarkdownRenderer
Assembly
OfficeIMO.MarkdownRenderer
Source revision
ba882f6b0d07 with working tree changes
Modifiers
sealed

Options controlling Mermaid rendering when used in a WebView/browser context. Mermaid transforms ```mermaid fenced code blocks into diagrams at runtime.

Inheritance

  • object
  • MermaidOptions

Usage

Explore 1 API references to this type

This type appears in these public API surfaces even when no hand-authored example is attached directly to the page.

Returned or exposed by 1

Constructors

public MermaidOptions() #

Properties

public bool Enabled { get; set; } #

Enable Mermaid support. Default: true.

public string EsmModuleUrl { get; set; } #

ESM module URL for Mermaid. Default points at Mermaid v11 on jsDelivr.

public string ScriptUrl { get; set; } #

Script URL for Mermaid (non-module). This is useful for offline bundling/hosting scenarios. Default points at Mermaid v11 on jsDelivr.

public string LightTheme { get; set; } #

Mermaid theme name to use in light mode. Default: "default".

public string DarkTheme { get; set; } #

Mermaid theme name to use in dark mode. Default: "dark".

public bool EnableHashCaching { get; set; } #

When true, MarkdownRenderer.RenderBodyHtml adds hashes to Mermaid blocks so the incremental updater can preserve already-rendered SVGs when content is updated. Default: true.