OfficeIMO

API Reference

Class

MarkdownBlockHtmlRenderExtension

Namespace OfficeIMO.Markdown
Assembly OfficeIMO.Markdown
Modifiers sealed

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

Inheritance

  • Object
  • MarkdownBlockHtmlRenderExtension

Constructors

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

Creates an HTML block render extension registration.

Parameters

name System.String requiredposition: 0
blockType System.Type requiredposition: 1
renderHtml OfficeIMO.Markdown.MarkdownBlockHtmlRenderer requiredposition: 2

Methods

public static MarkdownBlockHtmlRenderExtension CreateContextual(String name, Type blockType, MarkdownBlockHtmlContextualRenderer renderHtml) #
Returns: MarkdownBlockHtmlRenderExtension

Creates a context-aware HTML block render extension registration.

Parameters

name System.String requiredposition: 0
blockType System.Type requiredposition: 1
renderHtml OfficeIMO.Markdown.MarkdownBlockHtmlContextualRenderer requiredposition: 2
public Boolean Matches(IMarkdownBlock block) #
Returns: Boolean

Returns true when the extension can render the provided block.

Parameters

block OfficeIMO.Markdown.IMarkdownBlock requiredposition: 0

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.