Packages
html_to_markdown
3.6.1
3.9.0
3.8.3
3.8.2
3.8.1
3.8.0
3.8.0-rc.2
3.8.0-rc.1
3.7.2
3.7.1
3.7.0
3.6.21
3.6.20
3.6.19
3.6.18
3.6.17
3.6.16
3.6.15
3.6.14
3.6.13
3.6.11
3.6.10
3.6.9
3.6.8
3.6.3
3.6.1
3.6.0
3.6.0-rc.25
3.6.0-rc.23
3.6.0-rc.22
3.6.0-rc.21
3.6.0-rc.20
3.6.0-rc.17
3.6.0-rc.16
3.6.0-rc.14
3.6.0-rc.13
3.6.0-rc.12
3.6.0-rc.11
3.6.0-rc.10
3.6.0-rc.9
3.6.0-rc.7
3.6.0-rc.3
3.6.0-rc.2
3.6.0-rc.1
3.5.7
3.5.5
3.5.3
3.5.2
3.5.1
3.5.0
3.5.0-rc.1
3.4.0
3.4.0-rc.45
3.4.0-rc.44
3.4.0-rc.42
3.4.0-rc.41
3.4.0-rc.40
3.4.0-rc.25
3.4.0-rc.24
3.4.0-rc.23
3.4.0-rc.21
3.4.0-rc.20
3.4.0-rc.18
3.4.0-rc.16
3.4.0-rc.15
3.4.0-rc.14
3.4.0-rc.13
3.4.0-rc.12
3.4.0-rc.11
3.4.0-rc.9
3.4.0-rc.8
3.4.0-rc.2
3.4.0-rc.1
3.3.2
3.2.4
3.2.2
3.2.1
3.2.0
3.1.0
3.0.2
3.0.1
3.0.0
2.30.0
2.29.0
2.28.6
2.28.5
2.28.4
2.28.3
2.28.2
2.28.1
2.28.0
2.27.3
2.27.2
2.27.1
2.27.0
2.26.3
2.26.2
2.26.1
2.25.1
2.25.0
2.24.6
2.24.5
2.24.4
2.24.3
2.24.1
2.23.4
2.23.3
2.23.2
2.23.1
2.23.0
2.22.5
2.22.2
2.22.1
2.22.0
2.21.1
2.20.0
2.19.8
2.19.7
2.19.6
2.19.5
2.19.4
2.19.3
2.19.2
2.19.1
2.19.0
2.18.0
2.16.1
2.16.0
2.15.0
2.14.11
2.14.10
2.14.9
2.14.8
2.14.7
2.14.6
2.14.3
2.14.2
2.14.1
2.14.0
2.13.0
2.12.1
2.12.0
2.11.4
2.11.3
2.11.1
2.10.1
2.9.2
2.9.1
2.9.0
2.8.3
High-performance HTML to Markdown converter
Current section
Files
Jump to
Current section
Files
lib/html_to_markdown/conversion_options_update.ex
# This file is auto-generated by alef — DO NOT EDIT.
# alef:hash:3438f9fbb970f773f3c45f0a76ef480a632b0dfc5f03c8dc6bcca0e4f2e5e5f9
# To regenerate: alef generate
# To verify freshness: alef verify --exit-code
defmodule HtmlToMarkdown.ConversionOptionsUpdate do
@moduledoc """
Partial update for `ConversionOptions`.
Uses `Option<T>` fields for selective updates. Bindings use this to construct
options from language-native types. Prefer [`ConversionOptionsBuilder`] for Rust code.
"""
@typedoc "Partial update for `ConversionOptions`."
@type t :: %__MODULE__{
heading_style: String.t() | nil | nil,
list_indent_type: String.t() | nil | nil,
list_indent_width: non_neg_integer() | nil,
bullets: String.t() | nil,
strong_em_symbol: String.t() | nil,
escape_asterisks: boolean() | nil,
escape_underscores: boolean() | nil,
escape_misc: boolean() | nil,
escape_ascii: boolean() | nil,
code_language: String.t() | nil,
autolinks: boolean() | nil,
default_title: boolean() | nil,
br_in_tables: boolean() | nil,
compact_tables: boolean() | nil,
highlight_style: String.t() | nil | nil,
extract_metadata: boolean() | nil,
whitespace_mode: String.t() | nil | nil,
strip_newlines: boolean() | nil,
wrap: boolean() | nil,
wrap_width: non_neg_integer() | nil,
convert_as_inline: boolean() | nil,
sub_symbol: String.t() | nil,
sup_symbol: String.t() | nil,
newline_style: String.t() | nil | nil,
code_block_style: String.t() | nil | nil,
keep_inline_images_in: [String.t()] | nil,
preprocessing: map() | nil,
encoding: String.t() | nil,
debug: boolean() | nil,
strip_tags: [String.t()] | nil,
preserve_tags: [String.t()] | nil,
skip_images: boolean() | nil,
url_escape_style: String.t() | nil | nil,
link_style: String.t() | nil | nil,
output_format: String.t() | nil | nil,
include_document_structure: boolean() | nil,
extract_images: boolean() | nil,
max_image_size: non_neg_integer() | nil,
capture_svg: boolean() | nil,
infer_dimensions: boolean() | nil,
max_depth: non_neg_integer() | nil,
exclude_selectors: [String.t()] | nil,
tier_strategy: String.t() | nil | nil,
visitor: reference() | nil
}
defstruct heading_style: nil,
list_indent_type: nil,
list_indent_width: nil,
bullets: nil,
strong_em_symbol: nil,
escape_asterisks: nil,
escape_underscores: nil,
escape_misc: nil,
escape_ascii: nil,
code_language: nil,
autolinks: nil,
default_title: nil,
br_in_tables: nil,
compact_tables: nil,
highlight_style: nil,
extract_metadata: nil,
whitespace_mode: nil,
strip_newlines: nil,
wrap: nil,
wrap_width: nil,
convert_as_inline: nil,
sub_symbol: nil,
sup_symbol: nil,
newline_style: nil,
code_block_style: nil,
keep_inline_images_in: nil,
preprocessing: nil,
encoding: nil,
debug: nil,
strip_tags: nil,
preserve_tags: nil,
skip_images: nil,
url_escape_style: nil,
link_style: nil,
output_format: nil,
include_document_structure: nil,
extract_images: nil,
max_image_size: nil,
capture_svg: nil,
infer_dimensions: nil,
max_depth: nil,
exclude_selectors: nil,
tier_strategy: nil,
visitor: nil
defimpl Jason.Encoder do
@doc false
def encode(value, opts) do
value
|> Map.from_struct()
|> Enum.reject(fn {_k, v} -> v == nil end)
|> Enum.into(%{})
|> Jason.Encoder.encode(opts)
end
end
end