diff options
Diffstat (limited to 'web/react')
-rw-r--r-- | web/react/utils/markdown.jsx | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/web/react/utils/markdown.jsx b/web/react/utils/markdown.jsx index 2813798d2..1b699bc98 100644 --- a/web/react/utils/markdown.jsx +++ b/web/react/utils/markdown.jsx @@ -53,11 +53,13 @@ export class MattermostMarkdownRenderer extends marked.Renderer { } paragraph(text) { + let outText = TextFormatting.doFormatText(text, this.options); + if (this.formattingOptions.singleline) { - return `<p class="markdown__paragraph-inline">${text}</p>`; + return `<p class="markdown__paragraph-inline">${outText}</p>`; } - return super.paragraph(text); + return super.paragraph(outText); } table(header, body) { |