This function is mostly used if you'd like to be able to have the code highlighted via dangerouslySetInnerHTML so that the code can be highlighted in node environments.
dangerouslySetInnerHTML
The raw code string to turn into an HTML string
The current code language or an empty string
PrismJS Example
<Markdown highlightCode={Prism.highlightCode} markdown={markdown} /> Copy
<Markdown highlightCode={Prism.highlightCode} markdown={markdown} />
the html to dangerously set within a <code> tag
<code>
This function is mostly used if you'd like to be able to have the code highlighted via
dangerouslySetInnerHTMLso that the code can be highlighted in node environments.