HtmlToMarkdown. NodeContent
(html_to_markdown v3.5.2)
Copy Markdown
The semantic content type of a document node.
Uses internally tagged representation ("node_type": "heading") for JSON serialization.
Summary
Types
A code block or inline code.
A definition list entry with term and description.
A definition list container.
A section grouping container (auto-generated from heading hierarchy).
A heading element (h1-h6).
An image element.
A single list item.
A list container (ordered or unordered). Children are ListItem nodes.
A block of key-value metadata pairs (from <head> meta tags).
A paragraph of text.
A block quote container.
A raw block preserved as-is (e.g. <script>, <style> content).
The semantic content type of a document node.
A table with structured cell data.
Types
A code block or inline code.
A definition list entry with term and description.
@type definition_list() :: :definition_list
A definition list container.
@type group() :: %{ type: :group, label: String.t(), heading_level: non_neg_integer(), heading_text: String.t() }
A section grouping container (auto-generated from heading hierarchy).
@type heading() :: %{type: :heading, level: non_neg_integer(), text: String.t()}
A heading element (h1-h6).
@type image() :: %{ type: :image, description: String.t(), src: String.t(), image_index: non_neg_integer() }
An image element.
@type list_item() :: %{type: :list_item, text: String.t()}
A single list item.
@type list_variant() :: %{type: :list, ordered: boolean()}
A list container (ordered or unordered). Children are ListItem nodes.
@type metadata_block() :: %{type: :metadata_block, entries: [[String.t()]]}
A block of key-value metadata pairs (from <head> meta tags).
@type paragraph() :: %{type: :paragraph, text: String.t()}
A paragraph of text.
@type quote() :: :quote
A block quote container.
A raw block preserved as-is (e.g. <script>, <style> content).
@type t() :: term()
The semantic content type of a document node.
@type table() :: %{type: :table, grid: HtmlToMarkdown.TableGrid.t()}
A table with structured cell data.