fix(mdhtml): allow <string> and <em>
This commit is contained in:
parent
5703c02eef
commit
713645a682
1 changed files with 2 additions and 1 deletions
|
@ -112,7 +112,8 @@ impl TokenSink for Sanitizer {
|
||||||
| "sup" | "sub" // allow superscript/subscript
|
| "sup" | "sub" // allow superscript/subscript
|
||||||
| "hr" | "br" // allow horizontal rules and linebreaks
|
| "hr" | "br" // allow horizontal rules and linebreaks
|
||||||
| "p" | "span" // allow placing paragraphs and spans
|
| "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
|
| "blockquote" | "pre" | "code" // allow code blocks
|
||||||
| "ul" | "ol" | "li" // allow lists
|
| "ul" | "ol" | "li" // allow lists
|
||||||
| "img" | "a" // allow images and links, but will get sanitized later
|
| "img" | "a" // allow images and links, but will get sanitized later
|
||||||
|
|
Loading…
Reference in a new issue