(props)
| 76 | * - Other content is rendered as ANSI strings via formatToken |
| 77 | */ |
| 78 | export function Markdown(props) { |
| 79 | const $ = _c(4); |
| 80 | const settings = useSettings(); |
| 81 | if (settings.syntaxHighlightingDisabled) { |
| 82 | let t0; |
| 83 | if ($[0] !== props) { |
| 84 | t0 = <MarkdownBody {...props} highlight={null} />; |
| 85 | $[0] = props; |
| 86 | $[1] = t0; |
| 87 | } else { |
| 88 | t0 = $[1]; |
| 89 | } |
| 90 | return t0; |
| 91 | } |
| 92 | let t0; |
| 93 | if ($[2] !== props) { |
| 94 | t0 = <Suspense fallback={<MarkdownBody {...props} highlight={null} />}><MarkdownWithHighlight {...props} /></Suspense>; |
| 95 | $[2] = props; |
| 96 | $[3] = t0; |
| 97 | } else { |
| 98 | t0 = $[3]; |
| 99 | } |
| 100 | return t0; |
| 101 | } |
| 102 | function MarkdownWithHighlight(props) { |
| 103 | const $ = _c(4); |
| 104 | let t0; |
nothing calls this directly
no test coverage detected