API Reference

Class

MarkdownSyntaxBlockHtmlRenderExtension

Namespace OfficeIMO.Markdown
Assembly OfficeIMO.Markdown
Modifiers sealed

Named HTML render extension that can override emitted HTML for blocks with a specific final syntax kind.

Inheritance

  • Object
  • MarkdownSyntaxBlockHtmlRenderExtension

Usage

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

Methods

public static MarkdownSyntaxBlockHtmlRenderExtension CreateContextual(String name, MarkdownSyntaxKind kind, MarkdownSyntaxBlockHtmlContextualRenderer renderHtml, String customKind = null) #
Returns: MarkdownSyntaxBlockHtmlRenderExtension

Creates a context-aware HTML block render extension registration matched by syntax kind.

Parameters

name System.String requiredposition: 0
kind OfficeIMO.Markdown.MarkdownSyntaxKind requiredposition: 1
renderHtml OfficeIMO.Markdown.MarkdownSyntaxBlockHtmlContextualRenderer requiredposition: 2
customKind System.String = null optionalposition: 3
public Boolean Matches(MarkdownSyntaxNode syntaxNode) #
Returns: Boolean

Returns true when the extension can render the supplied syntax node.

Parameters

syntaxNode OfficeIMO.Markdown.MarkdownSyntaxNode requiredposition: 0

Properties

public String Name { get; } #

Stable extension name used for inspection or de-duplication.

public MarkdownSyntaxKind Kind { get; } #

The final syntax kind this extension handles.

public String CustomKind { get; } #

Optional custom extension kind to require when matching CustomKind.

public MarkdownSyntaxBlockHtmlContextualRenderer RenderHtml { get; } #

Context-aware HTML rendering callback.