diff options
author | Lars Wirzenius <liw@liw.fi> | 2022-08-06 07:38:15 +0300 |
---|---|---|
committer | Lars Wirzenius <liw@liw.fi> | 2022-08-06 07:38:47 +0300 |
commit | 862525b459be669e7c5faf40cbdd8406dde1baf9 (patch) | |
tree | 422481f20c9be64bcb79d0223a4202ed8b7eca96 | |
parent | 60a74ba1166ca1166c20b7f82f4a2e818f06f72d (diff) | |
download | riki-862525b459be669e7c5faf40cbdd8406dde1baf9.tar.gz |
feat: allo img directive to have the link parameter
Sponsored-by: author
-rw-r--r-- | src/directive/img.rs | 2 |
1 files changed, 1 insertions, 1 deletions
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 { |