HtmlToMarkdown.TextDirection (html_to_markdown v3.11.4)

Copy Markdown

Text directionality of document content.

Corresponds to the HTML dir attribute and bdi element directionality.

Summary

Types

t()

Text directionality of document content.

Functions

Automatic directionality detection

Left-to-right text flow (default for Latin scripts)

Right-to-left text flow (Hebrew, Arabic, Urdu, etc.)

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() :: :ltr | :rtl | :auto

Text directionality of document content.

Functions

auto()

@spec auto() :: t()

Automatic directionality detection

left_to_right()

@spec left_to_right() :: t()

Left-to-right text flow (default for Latin scripts)

right_to_left()

@spec right_to_left() :: t()

Right-to-left text flow (Hebrew, Arabic, Urdu, etc.)

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.