diff --git a/web/react/utils/markdown.jsx b/web/react/utils/markdown.jsx index e8e5798bdf..1b699bc982 100644 --- a/web/react/utils/markdown.jsx +++ b/web/react/utils/markdown.jsx @@ -53,13 +53,13 @@ export class MattermostMarkdownRenderer extends marked.Renderer { } paragraph(text) { - text = TextFormatting.doFormatText(text, this.options); + let outText = TextFormatting.doFormatText(text, this.options); if (this.formattingOptions.singleline) { - return `

${text}

`; + return `

${outText}

`; } - return super.paragraph(text); + return super.paragraph(outText); } table(header, body) {