From 315744b4f72ee7971709e3560ee1764c05b71a59 Mon Sep 17 00:00:00 2001 From: Matchu Date: Mon, 6 Sep 2021 14:07:05 -0700 Subject: [PATCH] Allow pre tag in lists I noticed someone using `
` 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?
---
 src/app/components/MarkdownAndSafeHTML.js | 1 +
 1 file changed, 1 insertion(+)

diff --git a/src/app/components/MarkdownAndSafeHTML.js b/src/app/components/MarkdownAndSafeHTML.js
index 1093922..78d8ea1 100644
--- a/src/app/components/MarkdownAndSafeHTML.js
+++ b/src/app/components/MarkdownAndSafeHTML.js
@@ -59,6 +59,7 @@ function MarkdownAndSafeHTML({ children, onBeforeSanitizeNode }) {
       "ol",
       "ul",
       "li",
+      "pre",
     ],
     ALLOWED_ATTR: ["href", "class"],
     // URL must either start with an approved host (external link), or with a