diff --git a/app/components/formatted_markdown_text.js b/app/components/formatted_markdown_text.js index a87ebdad0..1e41b4899 100644 --- a/app/components/formatted_markdown_text.js +++ b/app/components/formatted_markdown_text.js @@ -61,6 +61,8 @@ class FormattedMarkdownText extends React.PureComponent { softBreak: this.renderBreak, paragraph: this.renderParagraph, del: Renderer.forwardChildren, + html_inline: this.renderHTML, + html_block: this.renderHTML, }, }); } @@ -92,6 +94,11 @@ class FormattedMarkdownText extends React.PureComponent { return {children}; } + renderHTML = (props) => { + console.warn(`HTML used in FormattedMarkdownText component with id ${this.props.id}`); // eslint-disable-line no-console + return this.renderText(props); + } + render() { const {id, defaultMessage, values, theme} = this.props; const messageDescriptor = {id, defaultMessage};