High-level API for html_to_markdown.
Summary
Functions
Apply a partial update to these conversion options.
Create a new builder with default values.
Method
Create from a partial update, applying to defaults.
Build the final [ConversionOptions].
Set the list of CSS selectors for elements to exclude entirely from output.
Set the list of HTML tag names whose <img> children are kept inline.
Set the pre-processing options applied to the HTML before conversion.
Set the list of HTML tag names that are preserved verbatim in output.
Set the list of HTML tag names whose content is stripped from output.
Convert HTML to Markdown, returning a [ConversionResult] with content, metadata, images,
Convert HTML to Markdown, returning a [ConversionResult] with content, metadata, images,
Convert HTML to Markdown, returning a [ConversionResult] with content, metadata, images,
Validate that the header level is within valid range (1-6).
Classify a link based on href value.
Apply a partial update to these preprocessing options.
Create new preprocessing options from a partial update.
Functions
Apply a partial update to these conversion options.
@spec conversionoptions_builder() :: reference()
Create a new builder with default values.
@spec conversionoptions_default() :: String.t() | nil
Method
Method
Create from a partial update, applying to defaults.
Build the final [ConversionOptions].
Set the list of CSS selectors for elements to exclude entirely from output.
Set the list of HTML tag names whose <img> children are kept inline.
Set the pre-processing options applied to the HTML before conversion.
Set the list of HTML tag names that are preserved verbatim in output.
Set the list of HTML tag names whose content is stripped from output.
Convert HTML to Markdown, returning a [ConversionResult] with content, metadata, images,
Convert HTML to Markdown, returning a [ConversionResult] with content, metadata, images,
@spec convert(String.t(), String.t() | nil, String.t() | nil) :: {:ok, String.t() | nil} | {:error, String.t()}
@spec convert(String.t(), String.t() | nil, String.t() | nil) :: {:ok, String.t() | nil} | {:error, String.t()}
Convert HTML to Markdown, returning a [ConversionResult] with content, metadata, images,
Validate that the header level is within valid range (1-6).
Classify a link based on href value.
Apply a partial update to these preprocessing options.
@spec preprocessingoptions_default() :: String.t() | nil
Method
Method
Create new preprocessing options from a partial update.