From 026fb3e50e7796d22584a69de5e8d12da19e9e78 Mon Sep 17 00:00:00 2001 From: Zeng1998 Date: Tue, 21 Mar 2023 22:38:38 +0800 Subject: [PATCH] fix: markdown support in blockquote (#1394) --- web/src/labs/marked/parser/Blockquote.tsx | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/web/src/labs/marked/parser/Blockquote.tsx b/web/src/labs/marked/parser/Blockquote.tsx index 5d1daf48..535c7ddc 100644 --- a/web/src/labs/marked/parser/Blockquote.tsx +++ b/web/src/labs/marked/parser/Blockquote.tsx @@ -1,3 +1,5 @@ +import { inlineElementParserList } from "."; +import { marked } from ".."; import { matcher } from "../matcher"; export const BLOCKQUOTE_REG = /^> ([^\n]+)/; @@ -8,7 +10,8 @@ const renderer = (rawStr: string) => { return <>{rawStr}; } - return
{matchResult[1]}
; + const parsedContent = marked(matchResult[1], [], inlineElementParserList); + return
{parsedContent}
; }; export default {