Skip to main content

Search OfficeIMO

Enter a topic, API type, or PowerShell command.

Documentation Search all OfficeIMO/
Class

MarkdownHtmlBlockConverter

OfficeIMO.Markdown.Html

Namespace
OfficeIMO.Markdown.Html
Assembly
OfficeIMO.Markdown.Html
Source revision
e163ccb36643 with working tree changes
Modifiers
sealed

Ordered host/plugin seam for reinterpreting custom HTML elements during HTML-to-markdown conversion.

Inheritance

  • object
  • MarkdownHtmlBlockConverter

Usage

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

Returned or exposed by 1

Constructors

public MarkdownHtmlBlockConverter(string id, string name, Func<MarkdownHtmlBlockConversionContext, IReadOnlyList<IMarkdownBlock>?> convert) #

Create a new HTML element block converter.

Parameters

id string required
name string required
convert System.Func<OfficeIMO.Markdown.Html.MarkdownHtmlBlockConversionContext, System.Collections.Generic.IReadOnlyList<OfficeIMO.Markdown.IMarkdownBlock>?> required

Methods

public IReadOnlyList<IMarkdownBlock>? TryConvert(MarkdownHtmlBlockConversionContext context) #

Attempts to create blocks from the supplied HTML element conversion context.

Parameters

context OfficeIMO.Markdown.Html.MarkdownHtmlBlockConversionContext required

Returns

IReadOnlyList<IMarkdownBlock>?

Properties

public string Id { get; } #

Stable converter identifier used for deduplication and diagnostics.

public string Name { get; } #

Friendly converter name used for diagnostics and documentation.