Allow pre tag in lists

I noticed someone using `<pre>` for styling, and thought, sure why not!

I haven't added support for the code block indent thing, and I think that's probably fine?
This commit is contained in:
Emi Matchu 2021-09-06 14:07:05 -07:00
parent cc9cd5ef28
commit 315744b4f7

View file

@ -59,6 +59,7 @@ function MarkdownAndSafeHTML({ children, onBeforeSanitizeNode }) {
"ol", "ol",
"ul", "ul",
"li", "li",
"pre",
], ],
ALLOWED_ATTR: ["href", "class"], ALLOWED_ATTR: ["href", "class"],
// URL must either start with an approved host (external link), or with a // URL must either start with an approved host (external link), or with a