fix audio & video elements
This commit is contained in:
parent
95f276b20e
commit
0557e3f2b9
1 changed files with 2 additions and 2 deletions
|
@ -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 {
|
||||||
|
|
Loading…
Reference in a new issue