From 918b5ca70cd6260aadcce357e9a1cd4f8a3e3275 Mon Sep 17 00:00:00 2001 From: Djorkaeff Alexandre Date: Thu, 16 Jul 2020 16:58:57 -0300 Subject: [PATCH] [FIX] Markdown preview causes app stuck --- 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 4da9971947..99fb38424a 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}