Current section

Files

Jump to
html_to_markdown lib html_to_markdown preprocessing_preset.ex
Raw

lib/html_to_markdown/preprocessing_preset.ex

# This file is auto-generated by alef — DO NOT EDIT.
# alef:hash:7d62cf0c304e24a167a710e943106d8203118ef6cb83aa812f3133c24bfa7c7f
# To regenerate: alef generate
# To verify freshness: alef verify --exit-code
defmodule HtmlToMarkdown.PreprocessingPreset do
@moduledoc """
HTML preprocessing aggressiveness level.
Controls the extent of cleanup performed before conversion. Higher levels remove more elements.
"""
@typedoc "HTML preprocessing aggressiveness level."
@type t :: :minimal | :standard | :aggressive
@minimal :minimal
@standard :standard
@aggressive :aggressive
@doc "Minimal cleanup. Remove only essential noise (scripts, styles)."
@spec minimal() :: t()
def minimal, do: @minimal
@doc "Standard cleanup. Default. Removes navigation, forms, and other auxiliary content."
@spec standard() :: t()
def standard, do: @standard
@doc "Aggressive cleanup. Remove extensive non-content elements and structure."
@spec aggressive() :: t()
def aggressive, do: @aggressive
end