MCPcopy Create free account
hub / github.com/github/docs / MarkdownContent

Function MarkdownContent

components/ui/MarkdownContent/MarkdownContent.tsx:12–27  ·  view source on GitHub ↗
({
  children,
  as: Component = 'div',
  className,
  ...restProps
}: MarkdownContentPropsT)

Source from the content-addressed store, hash-verified

10}
11
12export const MarkdownContent = ({
13 children,
14 as: Component = 'div',
15 className,
16 ...restProps
17}: MarkdownContentPropsT) => {
18 return (
19 <Component
20 {...restProps}
21 className={cx(styles.markdownBody, 'markdown-body', className)}
22 {...(typeof children === 'string'
23 ? { dangerouslySetInnerHTML: { __html: children } }
24 : { children })}
25 />
26 )
27}

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected