HtmlToMarkdown.ConversionResult (html_to_markdown v3.6.0-rc.1)

Copy Markdown

The primary result of HTML conversion and extraction.

Contains the converted text output, optional structured document tree, metadata, extracted tables, images, and processing warnings.

Example

use html_to_markdown_rs::{convert, ConversionOptions};

let result = convert("<h1>Hello</h1><p>World</p>", None)?;
assert!(result.content.is_some());
assert!(result.warnings.is_empty());

Summary

Types

t()

The primary result of HTML conversion and extraction.

Types

t()

@type t() :: %HtmlToMarkdown.ConversionResult{
  content: String.t() | nil,
  document: map() | nil,
  images: [String.t()],
  metadata: map(),
  tables: [map()],
  warnings: [map()]
}

The primary result of HTML conversion and extraction.