From 10955ed7bbac0fcb7872ab0b49be43ba3dd3acb5 Mon Sep 17 00:00:00 2001 From: tshuli Date: Thu, 23 Nov 2023 17:35:47 +0800 Subject: [PATCH] Revert "fix: refine regex to handle newlines after indentation groups" This reverts commit e050bd645d06915338b2bad2b6189991da009702. --- .../components/MarkdownText/MarkdownText.tsx | 20 +------------------ 1 file changed, 1 insertion(+), 19 deletions(-) diff --git a/frontend/src/components/MarkdownText/MarkdownText.tsx b/frontend/src/components/MarkdownText/MarkdownText.tsx index b228ac0d07..c0e5919805 100644 --- a/frontend/src/components/MarkdownText/MarkdownText.tsx +++ b/frontend/src/components/MarkdownText/MarkdownText.tsx @@ -23,25 +23,7 @@ export const MarkdownText = ({ const processedRawString = useMemo(() => { // Create new line nodes for every new line in raw string so new lines gets rendered. if (multilineBreaks) { - /** - * Matching new lines that are not preceded by a token that indents. - * - * (?