Skip to main content

Search OfficeIMO

Enter a topic, API type, or PowerShell command.

Documentation Search all OfficeIMO/

API Reference

Class

MermaidOptions

Namespace OfficeIMO.MarkdownRenderer
Assembly OfficeIMO.MarkdownRenderer
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

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

Returned or exposed by

Constructors

Properties

public Boolean 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 Boolean EnableHashCaching { get; set; } #

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