Crate html2md

Crate html2md 

Source

Re-exports§

pub use markup5ever_rcdom::Handle;
pub use markup5ever_rcdom::NodeData;
pub use markup5ever_rcdom::RcDom;

Modules§

anchors
codes
common
containers
dummy
headers
iframes
images
lists
markup5ever_rcdom
A simple reference-counted DOM.
paragraphs
quotes
styles
tables

Structs§

StructuredPrinter
Intermediate result of HTML -> Markdown conversion.

Traits§

TagHandler
Trait interface describing abstract handler of arbitrary HTML tag.
TagHandlerFactory
Tag handler factory. This class is required in providing proper custom tag parsing capabilities to users of this library.

Functions§

parse
FFI variant for HTML -> Markdown conversion for calling from other languages
parse_html
Main function of this library. Parses incoming HTML, converts it into Markdown and returns converted string.
parse_html_custom
Custom variant of main function. Allows to pass custom tag<->tag factory pairs in order to register custom tag handler for tags you want.
parse_html_extended
Same as parse_html but retains all “span” html elements intact Markdown parsers usually strip them down when rendering but they may be useful for later processing