HtmlToMarkdown.WhitespaceMode (html_to_markdown v3.6.0-rc.10)

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.

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.