packages/html2md/lib/html2md library

Convert html to markdown in Dart.

Classes

Node
Wrapper class for html node.
Rule
A rule defining the element filtering, replacement and appending action.

Functions

convert(Object input, {String? rootTag, String? imageBaseUrl, bool removeLeadingWhitespaces = true, bool escape = true, Map<String, String>? styleOptions, List<String>? ignore, List<Rule>? rules}) String
Convert input to markdown text.

Typedefs

AppendFn = String Function()
Fuction for appending, the returned string will append to the converted content
FilterFn = bool Function(Node node)
Fuction for filtering your targeting node
ReplacementFn = String Function(String content, Node node)
Fuction for doing transform/replacement to the converted content