diff --git a/browser/components/MarkdownPreview.js b/browser/components/MarkdownPreview.js index 98ee30d3..fb5335d5 100644 --- a/browser/components/MarkdownPreview.js +++ b/browser/components/MarkdownPreview.js @@ -12,7 +12,7 @@ const katex = window.katex const sanitizeOpts = { allowedTags: [ 'h1', 'h2', 'h3', 'h4', 'h5', 'h6', 'blockquote', 'p', 'a', 'ul', 'ol', 'nl', 'li', 'b', 'i', 'strong', 'em', 'strike', 'code', 'hr', 'br', 'div', - 'table', 'thead', 'caption', 'tbody', 'tr', 'th', 'td', 'pre', 'img', 'span', 'cite', 'del', 'u' ], + 'table', 'thead', 'caption', 'tbody', 'tr', 'th', 'td', 'pre', 'img', 'span', 'cite', 'del', 'u', 'sub', 'sup' ], allowedClasses: { 'a': ['lineAnchor'], 'div': ['math'], diff --git a/browser/styles/mixins/marked.styl b/browser/styles/mixins/marked.styl index 4d34005e..adc8cca8 100644 --- a/browser/styles/mixins/marked.styl +++ b/browser/styles/mixins/marked.styl @@ -8,6 +8,16 @@ marked() padding 5px margin -5px border-radius 5px + sup + position relative + top -.4em + font-size 0.8em + vertical-align top + sub + position relative + bottom -.4em + font-size 0.8em + vertical-align top a color brandColor text-decoration none