(props: { children: string; className?: string })
| 92 | ].join(" "); |
| 93 | |
| 94 | export 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 | } |
nothing calls this directly
no test coverage detected