Crate html2md

Source

Re-exports§

Modules§

Structs§

  • The DOM itself; the result of parsing.
  • Intermediate result of HTML -> Markdown conversion.

Enums§

  • The different kinds of nodes in the DOM.

Traits§

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

Functions§

  • Main function of this library. Parses incoming HTML, converts it into Markdown and returns converted string.
  • Custom variant of main function. Allows to pass custom tag<->tag factory pairs in order to register custom tag hadler for tags you want.
  • Custom variant of main function. Allows to pass custom tag<->tag factory pairs in order to register custom tag hadler for tags you want.
  • Custom variant of main function. Allows to pass custom tag<->tag factory pairs in order to register custom tag hadler for tags you want.
  • 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.
  • Main function of this library to come. Rewrites incoming HTML, converts it into Markdown and returns converted string. Incomplete work in progress for major performance increases.

Type Aliases§

  • Reference to a DOM node.