HtmlToMarkdown. VisitResult
(html_to_markdown v3.6.0-rc.20)
Copy Markdown
Result of a visitor callback.
Allows visitors to control the conversion flow by either proceeding with default behavior, providing custom output, skipping elements, preserving HTML, or signaling errors.
Summary
Types
Continue with default conversion behavior
Replace default output with custom markdown
Stop conversion with an error
Preserve original HTML (don't convert to markdown)
Skip this element entirely (don't output anything)
Result of a visitor callback.
Types
@type continue() :: :continue
Continue with default conversion behavior
@type custom() :: %{type: :custom, value: String.t()}
Replace default output with custom markdown
@type error() :: %{type: :error, value: String.t()}
Stop conversion with an error
@type preserve_html() :: :preserve_html
Preserve original HTML (don't convert to markdown)
@type skip() :: :skip
Skip this element entirely (don't output anything)
@type t() :: term()
Result of a visitor callback.