[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:
2026-11-22 21:24:54 +01:00
parent f65c959bb4
commit 15c1d0e7c2
9 changed files with 585 additions and 22 deletions
+3 -1
View File
@@ -176,7 +176,9 @@ fn original_html(original: &Parsed) -> String {
})
.collect();
match &original.html {
Some(html) => sanitize(html, &SanitizeOptions { load_remote_images: false, inline_images }).html,
Some(html) => {
sanitize(html, &SanitizeOptions { load_remote_images: false, inline_images, ..Default::default() }).html
}
None => text_to_html(original.text.as_deref().unwrap_or("")),
}
}