Current section

Files

Jump to
html_to_markdown lib html_to_markdown tier_strategy.ex
Raw

lib/html_to_markdown/tier_strategy.ex

# This file is auto-generated by alef — DO NOT EDIT.
# alef:hash:4ba300ecbb725eb266bbcd4f47e9bc50e560372ba8b6f9d9f93c785e8758cdc8
# To regenerate: alef generate
# To verify freshness: alef verify --exit-code
defmodule HtmlToMarkdown.TierStrategy do
@moduledoc "Controls which conversion tier is used."
@typedoc "Controls which conversion tier is used."
@type t :: :auto | :tier2 | :tier1
@auto :auto
@tier2 :tier2
@tier1 :tier1
@doc "Automatically pick the best tier for the input (default)."
@spec auto() :: t()
def auto, do: @auto
@doc "Always use the Tier-2 (`tl::parse` + walk) path, skipping Tier-1."
@spec tier2() :: t()
def tier2, do: @tier2
@doc "Force the Tier-1 byte scanner; if it bails, fall back to Tier-2. Testkit-only; not stable API."
@spec tier1() :: t()
def tier1, do: @tier1
end