commit f06669ec8bf6e7788305af01e67bb5d719008c13 parent e5889ad0099a6da8a878bf14aaa70e189fe49a1d Author: JayVii <jayvii[AT]posteo[DOT]de> Date: Thu, 31 Oct 2024 21:32:25 +0100 fix: remove figure tags Diffstat:
M | run.sh | | | 3 | ++- |
1 file changed, 2 insertions(+), 1 deletion(-)
diff --git a/run.sh b/run.sh @@ -26,7 +26,8 @@ sed -E -e "s/<!--MANIFEST-->/\"$MANIFEST\"/" -i "$HTML" # remove images and iframes from article previews printf "Removing images and iframes...\n" -sed -E -e 's/<img[^>]*>//g' -e 's/<iframe[^>]*>//g' -i "$HTML" +sed -E -e 's/<img[^>]*>//g' -e 's/<iframe[^>]*>//g' \ + -e 's/<figure[^>]*>//g' -e 's/<\/figure>//g' -i "$HTML" # remove linebreaks and empty paragraphs printf "Clean up HTML...\n"