Skip to main content

Search OfficeIMO

Enter a topic, API type, or PowerShell command.

Documentation Search all OfficeIMO/
Class

ReaderHtmlOptions

OfficeIMO.Reader.Html

Namespace
OfficeIMO.Reader.Html
Assembly
OfficeIMO.Reader.Html
Source revision
ba882f6b0d07 with working tree changes
Modifiers
sealed

Options for HTML ingestion pipeline (HTML -> Markdown).

Inheritance

  • object
  • ReaderHtmlOptions

Usage

Explore 5 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 1

Constructors

public ReaderHtmlOptions() #

Methods

public ReaderHtmlOptions Clone() #

Creates a copy of the current options instance so reader registrations can reuse templates safely.

Returns

ReaderHtmlOptions A new ReaderHtmlOptions with cloned nested HTML-to-Markdown options.
public static ReaderHtmlOptions CreateOfficeIMOProfile() #

Creates the default OfficeIMO HTML reader profile.

Returns

ReaderHtmlOptions A new ReaderHtmlOptions instance using the default HTML-to-Markdown profile.
public static ReaderHtmlOptions CreatePortableProfile() #

Creates a portable HTML reader profile that favors portable Markdown output.

Returns

ReaderHtmlOptions A new ReaderHtmlOptions instance using the portable HTML-to-Markdown profile.
public static ReaderHtmlOptions CreateUntrustedHtmlProfile(int maxInputCharacters) #

Creates a bounded HTML reader profile for untrusted or size-sensitive HTML ingestion.

Parameters

maxInputCharacters int required
Maximum HTML input length accepted by the HTML-to-Markdown stage.

Returns

ReaderHtmlOptions A new ReaderHtmlOptions instance with a configured HTML input character limit.

Properties

public bool ChunkByHeadings { get; set; } #

Starts a new chunk at Markdown headings when possible.

public Encoding? InputEncoding { get; set; } #

Explicit byte encoding for stream and file input. When null, the reader detects a BOM or HTML meta charset and otherwise uses UTF-8.

public HtmlConversionDocumentOptions? ConversionOptions { get; set; } #

Shared parsing, trust, URL-policy, and complexity options applied before the reader projects HTML.

public HtmlMarkdownExportOptions? HtmlToMarkdownOptions { get; set; } #

Options passed to HTML-to-Markdown conversion stage.