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