瀏覽代碼

Fixes #3734

Add <h1> and <h2> elements to sanitizer options.
bubble
Owen Conti 7 年之前
父節點
當前提交
729fd71546
共有 1 個檔案被更改,包括 1 行新增1 行删除
  1. +1
    -1
      src/core/components/providers/markdown.jsx

+ 1
- 1
src/core/components/providers/markdown.jsx 查看文件

@@ -29,7 +29,7 @@ Markdown.propTypes = {
export default Markdown

const sanitizeOptions = {
allowedTags: sanitize.defaults.allowedTags.concat([ "img" ]),
allowedTags: sanitize.defaults.allowedTags.concat([ "h1", "h2", "img" ]),
textFilter: function(text) {
return text.replace(/&quot;/g, "\"")
}


Loading…
取消
儲存