HtmlToMarkdown.ImageType (html_to_markdown v3.11.4)

Copy Markdown

Image source classification for proper handling and processing.

Determines whether an image is embedded (data URI), inline SVG, external, or relative.

Summary

Types

t()

Image source classification for proper handling and processing.

Functions

Data URI embedded image (base64 or other encoding)

External image URL (http/https)

Inline SVG element

Relative image path

Returns the serde wire value this variant carries on the JSON boundary (see wire_variant_value in alef's naming module) -- distinct from the atom's Elixir spelling.

Types

t()

@type t() :: :data_uri | :inline_svg | :external | :relative

Image source classification for proper handling and processing.

Functions

data_uri()

@spec data_uri() :: t()

Data URI embedded image (base64 or other encoding)

external()

@spec external() :: t()

External image URL (http/https)

inline_svg()

@spec inline_svg() :: t()

Inline SVG element

relative()

@spec relative() :: t()

Relative image path

wire_value(atom)

@spec wire_value(t()) :: String.t()

Returns the serde wire value this variant carries on the JSON boundary (see wire_variant_value in alef's naming module) -- distinct from the atom's Elixir spelling.