HtmlToMarkdown.MetadataConfig (html_to_markdown v2.22.5)

View Source

Configuration for metadata extraction.

This controls which metadata sections are extracted during convert_with_metadata/3.

Summary

Types

t()

@type t() :: %HtmlToMarkdown.MetadataConfig{
  extract_document: boolean(),
  extract_headers: boolean(),
  extract_images: boolean(),
  extract_links: boolean(),
  extract_structured_data: boolean(),
  max_structured_data_size: pos_integer()
}

Functions

new(cfg)

@spec new(t() | map() | keyword() | nil) :: t()