From 10c90f514772cc21abf58aa2ea03f2d8f86bdaca Mon Sep 17 00:00:00 2001 From: Lars Wirzenius Date: Fri, 5 Aug 2022 22:56:39 +0300 Subject: feat: img directive alt 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 e10851e..9210892 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] = &["class"]; + pub const ALLOWED: &'static [&'static str] = &["alt", "class"]; pub const ALLOW_ANY_UNNAMED: bool = true; pub fn new(src: String) -> Self { -- cgit v1.2.1