Trait html2md::TagHandler
source · 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 { ... }
}
Expand description
Trait interface describing abstract handler of arbitrary HTML tag.
Required Methods§
sourcefn handle(&mut self, tag: &Handle, printer: &mut StructuredPrinter)
fn handle(&mut self, tag: &Handle, printer: &mut StructuredPrinter)
Handle tag encountered when walking HTML tree. This is executed before the children processing
sourcefn after_handle(&mut self, printer: &mut StructuredPrinter)
fn after_handle(&mut self, printer: &mut StructuredPrinter)
Executed after all children of this tag have been processed