import { matcher } from "../matcher"; export const BLOCKQUOTE_REG = /^> ([^\n]+)/; const renderer = (rawStr: string) => { const matchResult = matcher(rawStr, BLOCKQUOTE_REG); if (!matchResult) { return <>{rawStr}; } return
{matchResult[1]}
; }; export default { name: "blockquote", regexp: BLOCKQUOTE_REG, renderer, };