MCPcopy Index your code
hub / github.com/codeaashu/claude-code / Markdown

Function Markdown

src/components/Markdown.tsx:78–101  ·  view source on GitHub ↗
(props)

Source from the content-addressed store, hash-verified

76 * - Other content is rendered as ANSI strings via formatToken
77 */
78export 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}
102function MarkdownWithHighlight(props) {
103 const $ = _c(4);
104 let t0;

Callers

nothing calls this directly

Calls 1

useSettingsFunction · 0.85

Tested by

no test coverage detected