Przeglądaj źródła

Fixes #3734

Add <h1> and <h2> elements to sanitizer options.
bubble
Owen Conti 7 lat temu
rodzic
commit
729fd71546
1 zmienionych plików z 1 dodań i 1 usunięć
  1. +1
    -1
      src/core/components/providers/markdown.jsx

+ 1
- 1
src/core/components/providers/markdown.jsx Wyświetl plik

@@ -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, "\"")
}


Ładowanie…
Anuluj
Zapisz