html_to_markdown library

High-performance HTML to Markdown converter for Dart and Flutter.

Powered by the Rust html-to-markdown library via FFI bindings.

Classes

ConversionOptions
ConversionResult
HtmlMetadata
Extracted HTML metadata from document head and body.
ImageMetadata
LinkMetadata
NodeContext
Context information passed to each visitor callback.
PreprocessingOptions
Preprocessing configuration for HTML cleanup before conversion.
ProcessingWarning
Visitor
Abstract visitor for intercepting HTML element processing.

Enums

CodeBlockStyle
Code block rendering style.
HeadingStyle
Supported heading styles.
HighlightStyle
Code highlighting style.
LinkStyle
Link rendering style.
ListIndentType
List indentation type.
NewlineStyle
Line ending style.
NodeType
HTML node type for visitor context.
OutputFormat
Output format for the converted Markdown.
PreprocessingPreset
Preprocessing preset for input normalization.
VisitResult
Result of a visitor callback. continue_ has underscore suffix because continue is a reserved keyword in Dart.
WarningKind
Processing warning category.
WhitespaceMode
Whitespace handling mode.

Functions

checkLastError() → void
convert(String html, {ConversionOptions? options, Visitor? visitor}) ConversionResult