MCPcopy Create free account
hub / github.com/OpenSIST/OpenSIST.github.io / Markdown

Function Markdown

src/Components/Markdown/Markdown.jsx:43–55  ·  view source on GitHub ↗
({children, resolveImage, className})

Source from the content-addressed store, hash-verified

41};
42
43export default function Markdown({children, resolveImage, className}) {
44 const components = {
45 img: (props) => <ResolvedImage {...props} resolveImage={resolveImage}/>,
46 a: ({node, ...props}) => <a {...props} target="_blank" rel="noopener noreferrer"/>,
47 };
48 return (
49 <div className={"md-body" + (className ? ` ${className}` : "")}>
50 <ReactMarkdown remarkPlugins={[remarkGfm, remarkBreaks]} components={components} urlTransform={urlTransform}>
51 {children ?? ""}
52 </ReactMarkdown>
53 </div>
54 );
55}

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected