Skip to main content

Search OfficeIMO

Enter a topic, API type, or PowerShell command.

Documentation Search all OfficeIMO/
Class

MarkdownHtmlBlockConversionContext

OfficeIMO.Markdown.Html

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

Context supplied to HTML element block converters.

Inheritance

  • object
  • MarkdownHtmlBlockConversionContext

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 IReadOnlyList<IMarkdownBlock> ConvertChildNodesToBlocks() #

Converts the current element's child nodes using the base block converter.

Returns

IReadOnlyList<IMarkdownBlock>
public InlineSequence ConvertChildNodesToInlineSequence() #

Converts the current element's child nodes using the base inline converter.

Returns

InlineSequence
public IReadOnlyList<IMarkdownBlock> ConvertNodesToBlocks(IEnumerable<HtmlNode?> nodes) #

Converts the supplied nodes using the base block converter, skipping null entries.

Parameters

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

Returns

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

Converts the supplied nodes using the base inline converter, skipping null entries.

Parameters

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

Returns

InlineSequence
public string NormalizeBlockText(string? value) #

Normalizes HTML text content using the base block text rules.

Parameters

value string? required

Returns

string

Properties

public HtmlElement Element { get; } #

Current HTML element being converted.

public HtmlMarkdownExportOptions Options { get; } #

Effective HTML-to-markdown options.