Skip to main content

Search OfficeIMO

Enter a topic, API type, or PowerShell command.

Documentation Search all OfficeIMO/
Class

MarkdownHtmlInlineConverter

OfficeIMO.Markdown.Html

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

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

Inheritance

  • object
  • MarkdownHtmlInlineConverter

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 MarkdownHtmlInlineConverter(string id, string name, Func<MarkdownHtmlInlineConversionContext, IReadOnlyList<IMarkdownInline>?> converter) #

Creates a new custom inline HTML element converter.

Parameters

id string required
name string required
converter System.Func<OfficeIMO.Markdown.Html.MarkdownHtmlInlineConversionContext, System.Collections.Generic.IReadOnlyList<OfficeIMO.Markdown.IMarkdownInline>?> required

Methods

public IReadOnlyList<IMarkdownInline>? Convert(MarkdownHtmlInlineConversionContext context) #

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

Parameters

context OfficeIMO.Markdown.Html.MarkdownHtmlInlineConversionContext required

Returns

IReadOnlyList<IMarkdownInline>?

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.