Skip to main content

Search OfficeIMO

Enter a topic, API type, or PowerShell command.

Documentation Search all OfficeIMO/

API Reference

Class

HtmlInlineElementConverter

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

Custom inline HTML element decoder used during HTML-to-markdown conversion.

Inheritance

  • Object
  • HtmlInlineElementConverter

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 HtmlInlineElementConverter(String id, String name, Func<HtmlInlineElementConversionContext, IReadOnlyList<IMarkdownInline>> converter) #

Creates a new custom inline HTML element converter.

Parameters

id System.String requiredposition: 0
name System.String requiredposition: 1
converter System.Func{OfficeIMO.Markdown.Html.HtmlInlineElementConversionContext,System.Collections.Generic.IReadOnlyList{OfficeIMO.Markdown.IMarkdownInline}} requiredposition: 2

Methods

public IReadOnlyList<IMarkdownInline> Convert(HtmlInlineElementConversionContext context) #
Returns: IReadOnlyList<IMarkdownInline>

Attempts to convert a matching HTML inline element into markdown inline nodes.

Parameters

context OfficeIMO.Markdown.Html.HtmlInlineElementConversionContext requiredposition: 0

Properties

public String Id { get; } #

Stable converter identifier used for idempotence and diagnostics.

public String Name { get; } #

Friendly converter name used for diagnostics and documentation.