From 7c091126562860111e79c0b68077490edd404d0b Mon Sep 17 00:00:00 2001 From: Diego Mello Date: Fri, 18 Dec 2020 11:14:25 -0300 Subject: [PATCH] [FIX] App freezing if Markdown preview contains sequential empty spaces (#2726) * Remove sequential empty spaces from Markdown preview * Use Markdown preview on RepliedThread --- .../__snapshots__/Storyshots.test.js.snap | 199 +++++++++++++++++- app/containers/markdown/index.js | 2 + app/containers/message/RepliedThread.js | 16 +- storybook/stories/Markdown.js | 15 ++ 4 files changed, 223 insertions(+), 9 deletions(-) diff --git a/__tests__/__snapshots__/Storyshots.test.js.snap b/__tests__/__snapshots__/Storyshots.test.js.snap index 37f8f8680..d2bba5818 100644 --- a/__tests__/__snapshots__/Storyshots.test.js.snap +++ b/__tests__/__snapshots__/Storyshots.test.js.snap @@ -10220,6 +10220,80 @@ exports[`Storyshots Markdown list Markdown 1`] = ` + + Sequential empty spaces + + + + + a b c + + + a b c d e + + a b c + - {msg} + { const customEmoji = { @@ -69,6 +70,14 @@ export default ({ theme }) => { /> + + + + + { numberOfLines={1} preview /> +