From dd17dc5e059474be886dec3b74b96c0c4d8d548d Mon Sep 17 00:00:00 2001 From: SebinSong Date: Sat, 14 Dec 2024 10:21:10 +0900 Subject: [PATCH] fix the linter err --- frontend/views/utils/markdown-utils.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/frontend/views/utils/markdown-utils.js b/frontend/views/utils/markdown-utils.js index 159ce0880..02f34a23f 100644 --- a/frontend/views/utils/markdown-utils.js +++ b/frontend/views/utils/markdown-utils.js @@ -51,7 +51,7 @@ export function renderMarkdown (str: string): any { str = combineMarkdownSegmentListIntoString(strSplitByCodeMarkdown) str = str.replace(/(\d+\.|-)(\s.+)\n
/g, '$1$2\n\n') - .replace(/(>)(\s.+)\n
/gs, '$1$2\n\n') // Check for [2], [3] above once more to resolve edge-cases (reference: https://github.com/okTurtles/group-income/issues/2356) + .replace(/(>)(\s.+)\n
/gs, '$1$2\n\n') // Check for [2], [3] above once more to resolve edge-cases (reference: https://github.com/okTurtles/group-income/issues/2356) // STEP 2. convert the markdown into html DOM string. let converted = marked.parse(str, { gfm: true })