pub mod definition;
pub mod item;
pub mod ordered;
pub mod unordered;
pub mod utils;
pub fn dispatch_list_handler(
tag_name: &str,
node_handle: &tl::NodeHandle,
tag: &tl::HTMLTag,
parser: &tl::Parser,
output: &mut String,
options: &crate::options::ConversionOptions,
ctx: &super::Context,
depth: usize,
dom_ctx: &super::DomContext,
) -> bool {
match tag_name {
"ol" => {
ordered::handle(node_handle, parser, output, options, ctx, depth, dom_ctx);
true
}
"ul" => {
unordered::handle(node_handle, parser, output, options, ctx, depth, dom_ctx);
true
}
"li" => {
item::handle_li(node_handle, tag, parser, output, options, ctx, depth, dom_ctx);
true
}
"dl" => {
definition::handle_dl(node_handle, parser, output, options, ctx, depth, dom_ctx);
true
}
"dt" => {
definition::handle_dt(node_handle, parser, output, options, ctx, depth, dom_ctx);
true
}
"dd" => {
definition::handle_dd(node_handle, parser, output, options, ctx, depth, dom_ctx);
true
}
_ => false,
}
}