CodeBlock
Render highlighted code HTML with the project styling wrapper.
Source: usage snippet
const highlightedHtml = await highlightCode('const greeting = "Hello Atlas";', "ts");
<CodeBlock html={highlightedHtml} />Render highlighted code HTML with the project styling wrapper.
Source: usage snippet
const highlightedHtml = await highlightCode('const greeting = "Hello Atlas";', "ts");
<CodeBlock html={highlightedHtml} />