summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/generate_html.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/generate_html.rs b/src/generate_html.rs
index 41e0212..33158a5 100644
--- a/src/generate_html.rs
+++ b/src/generate_html.rs
@@ -225,7 +225,7 @@ pub fn document_to_html(page: &Page, website: &Website) -> String {
"jpg"|"jpeg"|"png"|"webp"|"gif"|"tiff" => html!(
"<figure><a href='{path}'><img src='{path}' alt='{label}' title='{label}' /></a></figure>"),
"mp3"|"wav"|"m4a" => html!("<audio controls src='{path}'>{label}</audio>"),
- "mp4"|"avi" => html!("<video controls src='{path}'>{label}</video>"),
+ "mp4"|"avi" => html!("<figure><video controls src='{path}'>{label}</video></figure>"),
ext @ _ => warn!("Unrecognised extension for embedded file {path:?} with extension {ext:?} in page {from:?}"),
}
}