MCPcopy Create free account
hub / github.com/FormidableLabs/prism-react-renderer / Highlight

Function Highlight

packages/prism-react-renderer/src/index.ts:14–21  ·  view source on GitHub ↗
(props: HighlightProps)

Source from the content-addressed store, hash-verified

12 * of Prism provided to ensure the languages are correctly loaded
13 */
14const Highlight = (props: HighlightProps) =>
15 createElement(InternalHighlight, {
16 ...props,
17 prism: props.prism || (Prism as PrismLib),
18 theme: props.theme || themes.vsDark,
19 code: props.code,
20 language: props.language,
21 })
22
23export { Highlight, Prism, themes, normalizeTokens, useTokenize }

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected