summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLars Wirzenius <liw@liw.fi>2022-08-05 22:56:39 +0300
committerLars Wirzenius <liw@liw.fi>2022-08-06 07:25:14 +0300
commit10c90f514772cc21abf58aa2ea03f2d8f86bdaca (patch)
treeedfc8b9d1a2708b20ede49ac43cb3f5a59de5597
parent186176b499dd7d1db6089bf8f666e3770162d782 (diff)
downloadriki-10c90f514772cc21abf58aa2ea03f2d8f86bdaca.tar.gz
feat: img directive alt parameter
Sponsored-by: author
-rw-r--r--src/directive/img.rs2
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 {