Unverified Commit 026fb3e5 authored by Zeng1998's avatar Zeng1998 Committed by GitHub

fix: markdown support in blockquote (#1394)

parent af3d3c2c
import { inlineElementParserList } from ".";
import { marked } from "..";
import { matcher } from "../matcher"; import { matcher } from "../matcher";
export const BLOCKQUOTE_REG = /^> ([^\n]+)/; export const BLOCKQUOTE_REG = /^> ([^\n]+)/;
...@@ -8,7 +10,8 @@ const renderer = (rawStr: string) => { ...@@ -8,7 +10,8 @@ const renderer = (rawStr: string) => {
return <>{rawStr}</>; return <>{rawStr}</>;
} }
return <blockquote>{matchResult[1]}</blockquote>; const parsedContent = marked(matchResult[1], [], inlineElementParserList);
return <blockquote>{parsedContent}</blockquote>;
}; };
export default { export default {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment