HtmlToMarkdown.NewlineStyle (html_to_markdown v3.11.4)

Copy Markdown

Line break syntax in Markdown output.

Controls how soft line breaks (from <br> or line breaks in source) are rendered.

Summary

Types

t()

Line break syntax in Markdown output.

Functions

Backslash at end of line. Alternative Markdown syntax.

Two trailing spaces at end of line. Default. Standard Markdown syntax.

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() :: :spaces | :backslash

Line break syntax in Markdown output.

Functions

backslash()

@spec backslash() :: t()

Backslash at end of line. Alternative Markdown syntax.

spaces()

@spec spaces() :: t()

Two trailing spaces at end of line. Default. Standard Markdown syntax.

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.