From 55ac9b5169c8f421050cb27cfe53ee5b6a341bd5 Mon Sep 17 00:00:00 2001 From: KlausMikhaelson Date: Fri, 3 Nov 2023 01:42:32 -0600 Subject: [PATCH] fix: fixed extra line getting added on using new line markdown --- packages/uiweb/src/lib/components/parsetext/defaultPatterns.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/uiweb/src/lib/components/parsetext/defaultPatterns.ts b/packages/uiweb/src/lib/components/parsetext/defaultPatterns.ts index ed9e842aa..8b762f42b 100644 --- a/packages/uiweb/src/lib/components/parsetext/defaultPatterns.ts +++ b/packages/uiweb/src/lib/components/parsetext/defaultPatterns.ts @@ -18,7 +18,7 @@ function newLinestyles(matchingString:string) { console.log(match, "Match"); if(match?.includes('\\n')) { console.log("New Line"); - const replacedString = matchingString.replace(/\\n/g, "
"); + const replacedString = matchingString.replace('\\n', "
"); return `
${replacedString}
`; } else { return `
${matchingString}
`;