diff --git a/src/HtmlUtils.tsx b/src/HtmlUtils.tsx
index b63ed1dcf0c..655be4ac928 100644
--- a/src/HtmlUtils.tsx
+++ b/src/HtmlUtils.tsx
@@ -124,6 +124,7 @@ const topicSanitizeHtmlParams: IExtendedSanitizeOptions = {
allowedTags: [
"font", // custom to matrix for IRC-style font coloring
"del", // for markdown
+ "s",
"a",
"sup",
"sub",
diff --git a/src/Linkify.tsx b/src/Linkify.tsx
index 24a8a153c56..910acc9dde8 100644
--- a/src/Linkify.tsx
+++ b/src/Linkify.tsx
@@ -147,8 +147,10 @@ export const transformTags: NonNullable"), ...parseChildren(n, pc, opts), pc.plain("")];
+ case "S":
+ return [pc.plain(""), ...parseChildren(n, pc, opts), pc.plain("")];
case "SUB":
return [pc.plain(""), ...parseChildren(n, pc, opts), pc.plain("")];
case "SUP":