From 862525b459be669e7c5faf40cbdd8406dde1baf9 Mon Sep 17 00:00:00 2001 From: Lars Wirzenius Date: Sat, 6 Aug 2022 07:38:15 +0300 Subject: feat: allo img directive to have the link parameter Sponsored-by: author --- src/directive/img.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/directive/img.rs b/src/directive/img.rs index 9210892..dea2625 100644 --- a/src/directive/img.rs +++ b/src/directive/img.rs @@ -12,7 +12,7 @@ pub struct Img { impl Img { pub const REQUIRED: &'static [&'static str] = &[]; - pub const ALLOWED: &'static [&'static str] = &["alt", "class"]; + pub const ALLOWED: &'static [&'static str] = &["alt", "class", "link"]; pub const ALLOW_ANY_UNNAMED: bool = true; pub fn new(src: String) -> Self { -- cgit v1.2.1