Skip to main content

Search OfficeIMO

Enter a topic, API type, or PowerShell command.

Documentation Search all OfficeIMO/
Class

MarkdownBlockMarkdownRenderExtension

OfficeIMO.Markdown

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

Named markdown writer extension that can override emitted markdown for a specific block type.

Inheritance

  • object
  • MarkdownBlockMarkdownRenderExtension

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 MarkdownBlockMarkdownRenderExtension(string name, Type blockType, MarkdownBlockMarkdownRenderer renderMarkdown) #

Creates a markdown block render extension registration.

Parameters

name string required
blockType System.Type required
renderMarkdown OfficeIMO.Markdown.MarkdownBlockMarkdownRenderer required

Methods

public static MarkdownBlockMarkdownRenderExtension CreateContextual(string name, Type blockType, MarkdownBlockMarkdownContextualRenderer renderMarkdown) #

Creates a context-aware markdown block render extension registration.

Parameters

name string required
blockType System.Type required
renderMarkdown OfficeIMO.Markdown.MarkdownBlockMarkdownContextualRenderer 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 MarkdownBlockMarkdownContextualRenderer RenderMarkdown { get; } #

Markdown rendering callback.