fix: markdown support in blockquote (#1394)

pull/1400/head
Zeng1998 2 years ago committed by GitHub
parent af3d3c2c9b
commit 026fb3e50e
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -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 <blockquote>{matchResult[1]}</blockquote>;
const parsedContent = marked(matchResult[1], [], inlineElementParserList);
return <blockquote>{parsedContent}</blockquote>;
};
export default {

Loading…
Cancel
Save