mod marks;
mod typography;
#[cfg(feature = "visitor")]
pub use marks::visit_underline;
pub use marks::{close_inserted, close_mark, close_strikethrough};
pub use typography::{ScriptEnd, close_abbreviation, close_italic_semantic, close_script, open_span};
use crate::converter::inline::HandlerContext;
use crate::converter::walk::Open;
pub fn open(tag_name: &str, context: HandlerContext<'_>, children: &mut Vec<crate::dom::NodeHandle>) -> Option<Open> {
match tag_name {
"mark" => marks::open_mark(context, children),
"del" | "s" | "strike" => marks::open_strikethrough(tag_name, &context, children),
"ins" => marks::open_inserted(context, children),
"sub" | "sup" => typography::open_script(tag_name, &context, children),
"var" | "dfn" => typography::open_italic_semantic(&context, children),
"abbr" => typography::open_abbreviation(&context, children),
_ => None,
}
}