diff --git a/src/util/parseMarkdown.js b/src/util/parseMarkdown.js index d09ef792e..9f8fcd53f 100644 --- a/src/util/parseMarkdown.js +++ b/src/util/parseMarkdown.js @@ -20,7 +20,7 @@ dompurify.addHook("afterSanitizeAttributes", (node) => { }); const ALLOWED_TAGS = ['div', 'h1', 'h2', 'h3', 'h4', 'h5', 'h6', 'p', 'em', 'strong', 'del', 'ol', 'ul', 'li', 'a', 'img']; -ALLOWED_TAGS.push('#text', 'code', 'pre', 'hr', 'table', 'thead', 'tbody', 'th', 'tr', 'td'); +ALLOWED_TAGS.push('#text', 'code', 'pre', 'hr', 'table', 'thead', 'tbody', 'th', 'tr', 'td', 'sub', 'sup'); // We want to support SVG elements, requiring the following tags (we exclude "foreignObject", "style" and "script") ALLOWED_TAGS.push("svg", "altGlyph", "altGlyphDef", "altGlyphItem", "animate", "animateColor", "animateMotion", "animateTransform"); ALLOWED_TAGS.push("circle", "clipPath", "color-profile", "cursor", "defs", "desc", "ellipse", "feBlend", "feColorMatrix", "feComponentTransfer");