Skip to main content

Search OfficeIMO

Enter a topic, API type, or PowerShell command.

Documentation Search all OfficeIMO/

API Reference

Class

HtmlElementBlockConverter

Namespace OfficeIMO.Markdown.Html
Assembly OfficeIMO.Markdown.Html
Modifiers sealed

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

Inheritance

  • Object
  • HtmlElementBlockConverter

Usage

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

Returned or exposed by

Constructors

public HtmlElementBlockConverter(String id, String name, Func<HtmlElementBlockConversionContext, IReadOnlyList<IMarkdownBlock>> convert) #

Create a new HTML element block converter.

Parameters

id System.String requiredposition: 0
name System.String requiredposition: 1
convert System.Func{OfficeIMO.Markdown.Html.HtmlElementBlockConversionContext,System.Collections.Generic.IReadOnlyList{OfficeIMO.Markdown.IMarkdownBlock}} requiredposition: 2

Methods

public IReadOnlyList<IMarkdownBlock> TryConvert(HtmlElementBlockConversionContext context) #
Returns: IReadOnlyList<IMarkdownBlock>

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

Parameters

context OfficeIMO.Markdown.Html.HtmlElementBlockConversionContext requiredposition: 0

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.