import React from 'react'; import ReactMarkdown from 'react-markdown'; import { theme } from 'antd'; const { useToken } = theme; /** * Lightweight markdown renderer used for displaying review reports. * We avoid the full plugin-field-markdown-vditor `Display` component because * it is tightly coupled to formily field context. */ export const MarkdownView: React.FC<{ content?: string; maxHeight?: number | string }> = ({ content, maxHeight }) => { const { token } = useToken(); if (!content) return null; return (
{text}
);
},
blockquote({ children }) {
return (
{children}); }, }} > {content}