HtmlToMarkdown.NodeType (html_to_markdown v3.6.0-rc.20)

Copy Markdown

Node type enumeration covering all HTML element types.

This enum categorizes all HTML elements that the converter recognizes, providing a coarse-grained classification for visitor dispatch.

Summary

Types

t()

Node type enumeration covering all HTML element types.

Functions

Abbreviation

Article element

Aside element

Audio element

Base element

Blockquote element

Body element

Line break (br)

Button element

Canvas element

Citation

Inline code (code)

Custom element (web components) or unknown tag

Data element

Definition description (dd)

Definition list (dl)

Definition term (dt)

Deleted text

Details element

Generic div container

Generic element node

Emphasis/italic (em, i)

Fieldset element

Figure caption

Figure element

Footer element

Form element

Head element

Header element

Heading elements (h1-h6)

Horizontal rule

HTML root element

Iframe element

Image (img)

Input element

Inserted text

Keyboard input

Label element

Legend element

Anchor link (a)

Link element (not anchor)

Ordered or unordered list (ul, ol)

List item (li)

Main element

Mark/highlight (mark)

Meta element

Meter element

Navigation element

Option element

Output element

Paragraph element

Picture element

Preformatted text block

Progress element

q()

Quote

Ruby parenthesis

Ruby text

Ruby annotation

Sample output

Script element

Section element

Select element

Slot element

Small text (small)

Source element

Span element

Strikethrough (s, del, strike)

Strong/bold (strong, b)

Style element

Subscript (sub)

Summary element

Superscript (sup)

SVG element

Table element

Table body (tbody)

Table cell (td, th)

Table foot (tfoot)

Table head (thead)

Table header cell (th)

Table row (tr)

Template element

Text node (most frequent - 100+ per document)

Textarea element

Time element

Title element

Underline (u, ins)

Variable

Video element

Types

t()

@type t() ::
  :text
  | :element
  | :heading
  | :paragraph
  | :div
  | :blockquote
  | :pre
  | :hr
  | :list
  | :list_item
  | :definition_list
  | :definition_term
  | :definition_description
  | :table
  | :table_row
  | :table_cell
  | :table_header
  | :table_body
  | :table_head
  | :table_foot
  | :link
  | :image
  | :strong
  | :em
  | :code
  | :strikethrough
  | :underline
  | :subscript
  | :superscript
  | :mark
  | :small
  | :br
  | :span
  | :article
  | :section
  | :nav
  | :aside
  | :header
  | :footer
  | :main
  | :figure
  | :figcaption
  | :time
  | :details
  | :summary
  | :form
  | :input
  | :select
  | :option
  | :button
  | :textarea
  | :label
  | :fieldset
  | :legend
  | :audio
  | :video
  | :picture
  | :source
  | :iframe
  | :svg
  | :canvas
  | :ruby
  | :rt
  | :rp
  | :abbr
  | :kbd
  | :samp
  | :var
  | :cite
  | :q
  | :del
  | :ins
  | :data
  | :meter
  | :progress
  | :output
  | :template
  | :slot
  | :html
  | :head
  | :body
  | :title
  | :meta
  | :link_tag
  | :style
  | :script
  | :base
  | :custom

Node type enumeration covering all HTML element types.

Functions

abbr()

@spec abbr() :: t()

Abbreviation

article()

@spec article() :: t()

Article element

aside()

@spec aside() :: t()

Aside element

audio()

@spec audio() :: t()

Audio element

base()

@spec base() :: t()

Base element

blockquote()

@spec blockquote() :: t()

Blockquote element

body()

@spec body() :: t()

Body element

br()

@spec br() :: t()

Line break (br)

button()

@spec button() :: t()

Button element

canvas()

@spec canvas() :: t()

Canvas element

cite()

@spec cite() :: t()

Citation

code()

@spec code() :: t()

Inline code (code)

custom()

@spec custom() :: t()

Custom element (web components) or unknown tag

data()

@spec data() :: t()

Data element

definition_description()

@spec definition_description() :: t()

Definition description (dd)

definition_list()

@spec definition_list() :: t()

Definition list (dl)

definition_term()

@spec definition_term() :: t()

Definition term (dt)

del()

@spec del() :: t()

Deleted text

details()

@spec details() :: t()

Details element

div()

@spec div() :: t()

Generic div container

element()

@spec element() :: t()

Generic element node

em()

@spec em() :: t()

Emphasis/italic (em, i)

fieldset()

@spec fieldset() :: t()

Fieldset element

figcaption()

@spec figcaption() :: t()

Figure caption

figure()

@spec figure() :: t()

Figure element

footer()

@spec footer() :: t()

Footer element

form()

@spec form() :: t()

Form element

head()

@spec head() :: t()

Head element

header()

@spec header() :: t()

Header element

heading()

@spec heading() :: t()

Heading elements (h1-h6)

hr()

@spec hr() :: t()

Horizontal rule

html()

@spec html() :: t()

HTML root element

iframe()

@spec iframe() :: t()

Iframe element

image()

@spec image() :: t()

Image (img)

input()

@spec input() :: t()

Input element

ins()

@spec ins() :: t()

Inserted text

kbd()

@spec kbd() :: t()

Keyboard input

label()

@spec label() :: t()

Label element

legend()

@spec legend() :: t()

Legend element

link()

@spec link() :: t()

Anchor link (a)

list()

@spec list() :: t()

Ordered or unordered list (ul, ol)

list_item()

@spec list_item() :: t()

List item (li)

main()

@spec main() :: t()

Main element

mark()

@spec mark() :: t()

Mark/highlight (mark)

meta()

@spec meta() :: t()

Meta element

meter()

@spec meter() :: t()

Meter element

option()

@spec option() :: t()

Option element

output()

@spec output() :: t()

Output element

paragraph()

@spec paragraph() :: t()

Paragraph element

picture()

@spec picture() :: t()

Picture element

pre()

@spec pre() :: t()

Preformatted text block

progress()

@spec progress() :: t()

Progress element

q()

@spec q() :: t()

Quote

rp()

@spec rp() :: t()

Ruby parenthesis

rt()

@spec rt() :: t()

Ruby text

ruby()

@spec ruby() :: t()

Ruby annotation

samp()

@spec samp() :: t()

Sample output

script()

@spec script() :: t()

Script element

section()

@spec section() :: t()

Section element

select()

@spec select() :: t()

Select element

slot()

@spec slot() :: t()

Slot element

small()

@spec small() :: t()

Small text (small)

source()

@spec source() :: t()

Source element

span()

@spec span() :: t()

Span element

strikethrough()

@spec strikethrough() :: t()

Strikethrough (s, del, strike)

strong()

@spec strong() :: t()

Strong/bold (strong, b)

style()

@spec style() :: t()

Style element

subscript()

@spec subscript() :: t()

Subscript (sub)

summary()

@spec summary() :: t()

Summary element

superscript()

@spec superscript() :: t()

Superscript (sup)

svg()

@spec svg() :: t()

SVG element

table()

@spec table() :: t()

Table element

table_body()

@spec table_body() :: t()

Table body (tbody)

table_cell()

@spec table_cell() :: t()

Table cell (td, th)

table_foot()

@spec table_foot() :: t()

Table foot (tfoot)

table_head()

@spec table_head() :: t()

Table head (thead)

table_header()

@spec table_header() :: t()

Table header cell (th)

table_row()

@spec table_row() :: t()

Table row (tr)

template()

@spec template() :: t()

Template element

text()

@spec text() :: t()

Text node (most frequent - 100+ per document)

textarea()

@spec textarea() :: t()

Textarea element

time()

@spec time() :: t()

Time element

title()

@spec title() :: t()

Title element

underline()

@spec underline() :: t()

Underline (u, ins)

var()

@spec var() :: t()

Variable

video()

@spec video() :: t()

Video element