fix audio & video elements

This commit is contained in:
Gabriel 2025-07-22 17:10:20 -04:00
parent 95f276b20e
commit 0557e3f2b9

View file

@ -164,10 +164,10 @@ fn process_content(items: &Vec<Item>) -> Vec<Content> {
}, },
Item::Link(_,children) => { Item::Link(_,children) => {
if has_video(children){ if has_video(children){
result.push(Content::Markdown("Unsupported video".to_owned())); result.push(media_content(i));
} }
else if has_image(children){ else if has_image(children){
result.push(Content::Markdown("Unsupported image".to_owned())); result.push(media_content(i));
} }
else { else {