From 37b9edfcf587e3d7986f08d83c623ab7950a31f6 Mon Sep 17 00:00:00 2001 From: Vsevolod Stakhov Date: Fri, 5 Aug 2016 13:57:52 +0100 Subject: [PATCH] [Fix] Trigger HTML_SHORT_LINK_IMG on any external image --- rules/html.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/rules/html.lua b/rules/html.lua index 416ea8c74..bab636322 100644 --- a/rules/html.lua +++ b/rules/html.lua @@ -39,7 +39,7 @@ local function check_html_image(task, min, max) if parent then if parent:get_type() == 'a' then -- do not trigger on small and unknown size images - if i['height'] + i['width'] >= 210 then + if i['height'] + i['width'] >= 210 or not i['embedded'] then return true end end -- 2.39.5