pub fn handle_caption(
node_handle: &tl::NodeHandle,
parser: &tl::Parser,
output: &mut String,
options: &crate::options::ConversionOptions,
ctx: &super::super::super::Context,
depth: usize,
dom_ctx: &super::super::super::DomContext,
) {
if let Some(tl::Node::Tag(tag)) = node_handle.get(parser) {
let mut text = String::new();
let children = tag.children();
{
for child_handle in children.top().iter() {
super::super::super::walk_node(child_handle, parser, &mut text, options, ctx, depth + 1, dom_ctx);
}
}
let text = text.trim();
if !text.is_empty() {
let escaped_text = text.replace('-', r"\-");
output.push('*');
output.push_str(&escaped_text);
output.push_str("*\n\n");
}
}
}