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
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
Functions
@spec normalized() :: t()
Collapse multiple whitespace characters to single spaces. Default. Matches browser behavior.
@spec strict() :: t()
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.