[][src]Trait html2md::TagHandler

pub trait TagHandler {
    fn handle(&mut self, tag: &Handle, printer: &mut StructuredPrinter);
fn after_handle(&mut self, printer: &mut StructuredPrinter); fn skip_descendants(&self) -> bool { ... } }

Trait interface describing abstract handler of arbitrary HTML tag.

Required methods

fn handle(&mut self, tag: &Handle, printer: &mut StructuredPrinter)

Handle tag encountered when walking HTML tree. This is executed before the children processing

fn after_handle(&mut self, printer: &mut StructuredPrinter)

Executed after all children of this tag have been processed

Loading content...

Provided methods

fn skip_descendants(&self) -> bool

Loading content...


Loading content...