summaryrefslogtreecommitdiff
path: root/src/directive/img.rs
diff options
context:
space:
mode:
authorLars Wirzenius <liw@liw.fi>2022-08-06 04:59:36 +0000
committerLars Wirzenius <liw@liw.fi>2022-08-06 04:59:36 +0000
commit454368dfbf11dad54567f004b94db90118bfc0b2 (patch)
tree14136e465198ea574f85d696698067aab0dc7a90 /src/directive/img.rs
parent97b2307e4ae2223fb2f9020bfa49e0e8924a268f (diff)
parentbe85bae2e516ce3b2b7874e94e5bb4fea6c30754 (diff)
downloadriki-454368dfbf11dad54567f004b94db90118bfc0b2.tar.gz
Merge branch 'dummy-directives' into 'main'
fix: single-quoted values may also contain newlines See merge request larswirzenius/riki!37
Diffstat (limited to 'src/directive/img.rs')
-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..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] = &["class"];
+ pub const ALLOWED: &'static [&'static str] = &["alt", "class", "link"];
pub const ALLOW_ANY_UNNAMED: bool = true;
pub fn new(src: String) -> Self {