ensure to use a more correct finding of fragments in reveal pres

This commit is contained in:
Chris Cochrun 2023-11-15 11:55:00 -06:00
parent 0ea3d0591a
commit e07664e9c5

View file

@ -18,7 +18,8 @@ pub fn count_slides_and_fragments(html_file_path: &Path) -> i32 {
let mut num_fragments = 0;
for slide_html in slide_content.iter().skip(1) {
let fragments = slide_html.matches("fragment").count();
let fragments =
slide_html.matches("class=\"fragment").count();
num_fragments += fragments;
}