import ReactMarkdown from 'react-markdown'; import rehypeRaw from 'rehype-raw'; import rehypeHighlight from 'rehype-highlight'; import remarkGfm from 'remark-gfm'; import remarkBreaks from 'remark-breaks'; import { FC } from 'react'; import { ReactMarkdownOptions } from 'react-markdown/lib/react-markdown'; import { BrowserOpenURL } from '../../wailsjs/runtime'; const Hyperlink: FC = ({ href, children }) => { return ( { BrowserOpenURL(href); }} > {/*@ts-ignore*/} {children} ); }; const MarkdownRender: FC = (props) => { return (
{props.disabled ?
{props.children}
: {props.children} }
); }; export default MarkdownRender;