Skip to main content

Search OfficeIMO

Enter a topic, API type, or PowerShell command.

Documentation Search all OfficeIMO/
Class

MarkdownHtmlInlineConversionContext

OfficeIMO.Markdown.Html

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

Context passed to custom HTML inline-element converters.

Inheritance

  • object
  • MarkdownHtmlInlineConversionContext

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.

Accepted by parameters 2

Methods

public InlineSequence ConvertChildNodesToInlineSequence() #

Converts the current element's children into an inline markdown sequence using the current conversion profile.

Returns

InlineSequence
public InlineSequence ConvertNodesToInlineSequence(IEnumerable<HtmlNode?>? nodes) #

Converts the supplied HTML nodes into an inline markdown sequence using the current conversion profile. Missing collections and null entries contribute no output; non-null nodes must belong to this callback snapshot.

Parameters

nodes System.Collections.Generic.IEnumerable<OfficeIMO.Html.Dom.HtmlNode?>? required

Returns

InlineSequence
public string NormalizeInlineText(string? value) #

Normalizes plain inline text using HTML-style collapsed whitespace rules.

Parameters

value string? required

Returns

string

Properties

public HtmlElement Element { get; } #

HTML element being converted.

public HtmlMarkdownExportOptions Options { get; } #

Active HTML-to-markdown options.