Skip to content

Commit

Permalink
Merge branch 'pr-924'
Browse files Browse the repository at this point in the history
* pr-924:
  Added table tags to narrative main display allowed tags list. Some CSS work is still required to make it look nice.
  • Loading branch information
jameshadfield committed Mar 9, 2020
2 parents 28104bf + 3867a15 commit 8fa249e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/components/narrative/MainDisplayMarkdown.js
Original file line number Diff line number Diff line change
Expand Up @@ -133,7 +133,7 @@ function mdToHtml(md) {

const sanitizer = dompurify.sanitize;
const sanitizerConfig = {
ALLOWED_TAGS: ['div', 'h1', 'h2', 'h3', 'h4', 'h5', 'h6', 'p', 'em', 'strong', 'del', 'ol', 'ul', 'li', 'a', 'img', '#text', 'pre', 'hr'],
ALLOWED_TAGS: ['div', 'h1', 'h2', 'h3', 'h4', 'h5', 'h6', 'p', 'em', 'strong', 'del', 'ol', 'ul', 'li', 'a', 'img', '#text', 'pre', 'hr', 'table', 'thead', 'tbody', 'th', 'tr', 'td'],
ALLOWED_ATTR: ['href', 'src', 'width', 'height', 'alt'],
KEEP_CONTENT: false,
ALLOW_DATA_ATTR: false
Expand Down

0 comments on commit 8fa249e

Please sign in to comment.