MCPcopy Create free account
hub / github.com/UsefulSoftwareCo/executor / Markdown

Function Markdown

packages/react/src/components/markdown.tsx:94–108  ·  view source on GitHub ↗
(props: { children: string; className?: string })

Source from the content-addressed store, hash-verified

92].join(" ");
93
94export function Markdown(props: { children: string; className?: string }) {
95 const components = { a: Link, img: Image, pre: PreBlock } satisfies Components;
96 return (
97 <div className={props.className ? `${PROSE_CLASSES} ${props.className}` : PROSE_CLASSES}>
98 <Streamdown
99 components={components}
100 linkSafety={{ enabled: true }}
101 skipHtml
102 urlTransform={(url) => sanitizeMarkdownUrl(url)}
103 >
104 {props.children}
105 </Streamdown>
106 </div>
107 );
108}

Callers

nothing calls this directly

Calls 1

sanitizeMarkdownUrlFunction · 0.85

Tested by

no test coverage detected