API Reference

Class

MarkdownVisualTheme

Namespace OfficeIMO.Markdown
Assembly OfficeIMO.Markdown
Modifiers sealed

Shared visual profile used to keep Markdown exports visually consistent across HTML, PDF, and Word.

Inheritance

  • Object
  • MarkdownVisualTheme

Usage

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

Accepted by parameters

Constructors

public MarkdownVisualTheme() #

Creates a custom visual theme.

Methods

public MarkdownVisualTheme Clone() #
Returns: MarkdownVisualTheme

Creates a copy of this visual theme.

public static MarkdownVisualTheme Compact() #
Returns: MarkdownVisualTheme

Compact profile for dense technical notes.

public static MarkdownVisualTheme Create(MarkdownVisualThemeKind kind) #
Returns: MarkdownVisualTheme

Creates one of the built-in shared visual themes.

Parameters

kind OfficeIMO.Markdown.MarkdownVisualThemeKind requiredposition: 0
public static MarkdownVisualTheme GitHubLike() #
Returns: MarkdownVisualTheme

GitHub-inspired profile for README-style exports.

public static MarkdownVisualTheme Plain() #
Returns: MarkdownVisualTheme

Plain profile with minimal visual opinions.

public static MarkdownVisualTheme Report() #
Returns: MarkdownVisualTheme

Report-oriented profile with stronger hierarchy and tables.

public static MarkdownVisualTheme TechnicalDocument() #
Returns: MarkdownVisualTheme

Polished profile for technical guides, specs, and READMEs.

public static Boolean TryCreate(String name, out MarkdownVisualTheme theme) #
Returns: Boolean

Tries to create a built-in shared visual theme from an API or front-matter name.

Parameters

name System.String requiredposition: 0
theme OfficeIMO.Markdown.MarkdownVisualTheme@ requiredposition: 1
public MarkdownVisualTheme WithColors(String accent = null, String heading = null, String text = null, String mutedText = null, String background = null, String surface = null, String border = null, String codeBackground = null, String tableHeaderBackground = null, String tableHeaderText = null, String tableStripeBackground = null) #
Returns: MarkdownVisualTheme

Returns a copy of this theme with selected palette colors overridden.

Parameters

accent System.String = null optionalposition: 0
heading System.String = null optionalposition: 1
text System.String = null optionalposition: 2
mutedText System.String = null optionalposition: 3
background System.String = null optionalposition: 4
surface System.String = null optionalposition: 5
border System.String = null optionalposition: 6
codeBackground System.String = null optionalposition: 7
tableHeaderBackground System.String = null optionalposition: 8
tableHeaderText System.String = null optionalposition: 9
tableStripeBackground System.String = null optionalposition: 10
public MarkdownVisualTheme WithColorScheme(MarkdownColorSchemeKind scheme) #
Returns: MarkdownVisualTheme

Returns a copy of this theme with the requested color scheme applied.

Parameters

scheme OfficeIMO.Markdown.MarkdownColorSchemeKind requiredposition: 0
public MarkdownVisualTheme WithTable(Action<MarkdownTableVisualStyle> configure) #
Returns: MarkdownVisualTheme

Returns a copy of this theme with table styling configured.

Parameters

configure System.Action{OfficeIMO.Markdown.MarkdownTableVisualStyle} requiredposition: 0
public static MarkdownVisualTheme WordLike() #
Returns: MarkdownVisualTheme

Neutral Word-like profile for general documents.

Properties

public MarkdownVisualThemeKind Kind { get; set; } #

Theme kind used for diagnostics and renderer mapping.

public String Name { get; set; } #

Human-readable theme name.

public HtmlStyle HtmlStyle { get; set; } #

Preferred built-in HTML style preset when rendering this theme to HTML.

public MarkdownVisualPalette Palette { get; set; } #

Semantic color palette shared by exporters.

public MarkdownTableVisualStyle Table { get; set; } #

Table styling shared by exporters.