Skip to content
Snippets Groups Projects
Commit ebdc964d authored by Stephen D's avatar Stephen D
Browse files

caption

parent 307f9cb7
No related branches found
No related tags found
No related merge requests found
......@@ -114,6 +114,11 @@ impl HtmlHandler<Error> for CustomHtmlHandler {
r#"<video controls="controls"><source src="{value}"></video>"#
)?;
}
Element::Keyword(Keyword { key, value, .. }) if key == "CAPTION" => {
write!(w, r#"<small>{value}</small>"#)?;
}
// fallback to default handler
_ => self.fallback.start(w, element)?,
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment