diff --git a/client/lib/post-normalizer/rule-content-remove-styles.js b/client/lib/post-normalizer/rule-content-remove-styles.js index d70df275e446b..ca7d8c8464937 100644 --- a/client/lib/post-normalizer/rule-content-remove-styles.js +++ b/client/lib/post-normalizer/rule-content-remove-styles.js @@ -16,10 +16,15 @@ export default function removeContentStyles( post, dom ) { throw new Error( 'this transform must be used as part of withContentDOM' ); } - // Allow the markup for galleries, Instagram, and Twitter. Styling will be allowed on elements that match this selector. + // Styling will be allowed on elements that match this selector. const allowedMarkupSelector = + // Inline highlighted text + 'mark.has-inline-color, ' + + // Gallery '.gallery, .gallery *, .gallery-row, .gallery-row *, .gallery-group, .gallery-group *, ' + + // Instagram 'blockquote[class^="instagram-"], blockquote[class^="instagram-"] *, ' + + // Twitter 'blockquote[class^="twitter-"], blockquote[class^="twitter-"] *'; // remove most style attributes