import ReactMarkdown from "react-markdown"; import remarkMath from "remark-math"; import rehypeKatex from "rehype-katex"; import rehypeRaw from "rehype-raw"; import { Prism as SyntaxHighlighter } from "react-syntax-highlighter"; import remarkGfm from "remark-gfm"; import styles from "./index.module.scss"; import { useRef } from "react"; import cls from "classnames"; interface IMarkdownProps { content?: string; markdownClass?: string; markdownId?: string; } const LazyUrlMarkdown: React.FC = ({ content, markdownClass = "", }) => { const ref = useRef(null); return (
) : ( {children} ); }, }} > {content}
); }; export default LazyUrlMarkdown;