diff options
author | Lars Wirzenius <liw@liw.fi> | 2022-08-05 22:56:39 +0300 |
---|---|---|
committer | Lars Wirzenius <liw@liw.fi> | 2022-08-06 07:25:14 +0300 |
commit | 10c90f514772cc21abf58aa2ea03f2d8f86bdaca (patch) | |
tree | edfc8b9d1a2708b20ede49ac43cb3f5a59de5597 | |
parent | 186176b499dd7d1db6089bf8f666e3770162d782 (diff) | |
download | riki-10c90f514772cc21abf58aa2ea03f2d8f86bdaca.tar.gz |
feat: img directive alt 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 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 { |