From 45cc350a8ccc5ef42764d1b4226c7bcaa01c68af Mon Sep 17 00:00:00 2001 From: Djorkaeff Alexandre Date: Fri, 17 Jul 2020 14:45:39 -0300 Subject: [PATCH] [FIX] Markdown preview causes app stuck (#2303) Co-authored-by: Diego Mello --- app/containers/markdown/index.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/containers/markdown/index.js b/app/containers/markdown/index.js index 4da997194..99fb38424 100644 --- a/app/containers/markdown/index.js +++ b/app/containers/markdown/index.js @@ -383,9 +383,9 @@ class Markdown extends PureComponent { m = m.replace(/^\[([\s]]*)\]\(([^)]*)\)\s/, '').trim(); if (preview) { - m = m.replace(/\n+/g, ' '); m = shortnameToUnicode(m); m = removeMarkdown(m); + m = m.replace(/\n+/g, ' '); return ( {m}