From 713645a68277c129de094e2a062761a7c5a19281 Mon Sep 17 00:00:00 2001 From: alemi Date: Thu, 9 Jan 2025 19:44:51 +0100 Subject: [PATCH] fix(mdhtml): allow and --- utils/mdhtml/lib.rs | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/utils/mdhtml/lib.rs b/utils/mdhtml/lib.rs index a7f7a61..9bd3a04 100644 --- a/utils/mdhtml/lib.rs +++ b/utils/mdhtml/lib.rs @@ -112,7 +112,8 @@ impl TokenSink for Sanitizer { | "sup" | "sub" // allow superscript/subscript | "hr" | "br" // allow horizontal rules and linebreaks | "p" | "span" // allow placing paragraphs and spans - | "b" | "i" | "s" | "del" // allow simple formatting: bold, italic and strikethrough, but not underlined as it can look like a link! + | "b" | "i" | "s" // allow simple formatting: bold, italic and strikethrough, but not underlined as it can look like a link! + | "strong" | "em" | "del" // alternative ways to do bold, italig and strikethrough | "blockquote" | "pre" | "code" // allow code blocks | "ul" | "ol" | "li" // allow lists | "img" | "a" // allow images and links, but will get sanitized later