Current section

Files

Jump to
html_to_markdown lib html_to_markdown whitespace_mode.ex
Raw

lib/html_to_markdown/whitespace_mode.ex

# This file is auto-generated by alef — DO NOT EDIT.
# alef:hash:916d4bc28e07ef28a825e0f6996d70e0391fb2f85136a4473449809107d57a63
# To regenerate: alef generate
# To verify freshness: alef verify --exit-code
# Issues & docs: https://github.com/kreuzberg-dev/alef
defmodule HtmlToMarkdown.WhitespaceMode do
@moduledoc """
Whitespace handling strategy during conversion.
Determines how sequences of whitespace characters (spaces, tabs, newlines) are processed.
"""
@typedoc "Whitespace handling strategy during conversion."
@type t :: :normalized | :strict
@normalized :normalized
@strict :strict
@doc "Collapse multiple whitespace characters to single spaces. Default. Matches browser behavior."
@spec normalized() :: t()
def normalized, do: @normalized
@doc "Preserve all whitespace exactly as it appears in the HTML."
@spec strict() :: t()
def strict, do: @strict
end