Skip to main content

Search OfficeIMO

Enter a topic, API type, or PowerShell command.

Documentation Search all OfficeIMO/
Class

MarkdownBlockHtmlRenderExtension

OfficeIMO.Markdown

Namespace
OfficeIMO.Markdown
Assembly
OfficeIMO.Markdown
Source revision
0eef6a5756b9 with working tree changes
Modifiers
sealed

Named HTML render extension that can override emitted HTML for a specific block type.

Inheritance

  • object
  • MarkdownBlockHtmlRenderExtension

Usage

Explore 2 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.

Constructors

public MarkdownBlockHtmlRenderExtension(string name, Type blockType, MarkdownBlockHtmlRenderer renderHtml) #

Creates an HTML block render extension registration.

Parameters

name string required
blockType System.Type required
renderHtml OfficeIMO.Markdown.MarkdownBlockHtmlRenderer required

Methods

public static MarkdownBlockHtmlRenderExtension CreateContextual(string name, Type blockType, MarkdownBlockHtmlContextualRenderer renderHtml) #

Creates a context-aware HTML block render extension registration.

Parameters

name string required
blockType System.Type required
renderHtml OfficeIMO.Markdown.MarkdownBlockHtmlContextualRenderer required
public bool Matches(IMarkdownBlock block) #

Returns true when the extension can render the provided block.

Parameters

block OfficeIMO.Markdown.IMarkdownBlock required

Returns

bool

Properties

public string Name { get; } #

Stable extension name used for inspection or de-duplication.

public Type BlockType { get; } #

The block type this extension handles.

public MarkdownBlockHtmlContextualRenderer RenderHtml { get; } #

HTML rendering callback.