HtmlToMarkdown.WhitespaceMode (html_to_markdown v3.11.4)

Copy Markdown

Whitespace handling strategy during conversion.

Determines how sequences of whitespace characters (spaces, tabs, newlines) are processed.

Summary

Types

t()

Whitespace handling strategy during conversion.

Functions

Collapse multiple whitespace characters to single spaces. Default. Matches browser behavior.

Preserve all whitespace exactly as it appears in the HTML.

Returns the serde wire value this variant carries on the JSON boundary (see wire_variant_value in alef's naming module) -- distinct from the atom's Elixir spelling.

Types

t()

@type t() :: :normalized | :strict

Whitespace handling strategy during conversion.

Functions

normalized()

@spec normalized() :: t()

Collapse multiple whitespace characters to single spaces. Default. Matches browser behavior.

strict()

@spec strict() :: t()

Preserve all whitespace exactly as it appears in the HTML.

wire_value(atom)

@spec wire_value(t()) :: String.t()

Returns the serde wire value this variant carries on the JSON boundary (see wire_variant_value in alef's naming module) -- distinct from the atom's Elixir spelling.