Skip to main content

Search OfficeIMO

Enter a topic, API type, or PowerShell command.

Documentation Search all OfficeIMO/
Class

MarkdownSyntaxBlockHtmlRenderExtension

OfficeIMO.Markdown

Namespace
OfficeIMO.Markdown
Assembly
OfficeIMO.Markdown
Source revision
07c6bff0a794 with working tree changes
Modifiers
sealed

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

Inheritance

  • object
  • MarkdownSyntaxBlockHtmlRenderExtension

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.

Methods

public static MarkdownSyntaxBlockHtmlRenderExtension CreateContextual(string name, MarkdownSyntaxKind kind, MarkdownSyntaxBlockHtmlContextualRenderer renderHtml, string? customKind = null) #

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

Parameters

name string required
kind OfficeIMO.Markdown.MarkdownSyntaxKind required
renderHtml OfficeIMO.Markdown.MarkdownSyntaxBlockHtmlContextualRenderer required
customKind string? = null optional
public bool Matches(MarkdownSyntaxNode syntaxNode) #

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

Parameters

syntaxNode OfficeIMO.Markdown.MarkdownSyntaxNode required

Returns

bool

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 MarkdownSyntaxNode.CustomKind.

public MarkdownSyntaxBlockHtmlContextualRenderer RenderHtml { get; } #

Context-aware HTML rendering callback.