[core] Sanitiser: Colours::Dark for the dark reader (backgrounds out, colours lifted to 4.5 : 1, rule borders, theme links, colours_changed)
This commit is contained in:
+4
-2
@@ -120,8 +120,10 @@ fn inline_cid_image_becomes_a_data_uri_in_the_reader() {
|
||||
inline.content_id.clone().unwrap(),
|
||||
InlineImage { content_type: &inline.content_type, data: &inline.data },
|
||||
);
|
||||
let out =
|
||||
sanitize(m.html.as_deref().unwrap(), &SanitizeOptions { load_remote_images: false, inline_images: images });
|
||||
let out = sanitize(
|
||||
m.html.as_deref().unwrap(),
|
||||
&SanitizeOptions { load_remote_images: false, inline_images: images, ..Default::default() },
|
||||
);
|
||||
assert!(out.html.contains("data:image/png;base64,"), "{}", out.html);
|
||||
assert!(!out.html.contains("cid"), "{}", out.html);
|
||||
assert_eq!(out.blocked_images, 0);
|
||||
|
||||
Reference in New Issue
Block a user