diff --git a/packages/react/src/components/LoadedCode.tsx b/packages/react/src/components/LoadedCode.tsx index 9c33963..378e9a2 100644 --- a/packages/react/src/components/LoadedCode.tsx +++ b/packages/react/src/components/LoadedCode.tsx @@ -22,6 +22,7 @@ export const LoadedCode = forwardRef( useEffect(() => { if (state && ref.current && !ref.current.dataset.highlighted) { + hljs.configure({ ignoreUnescapedHTML: true }); hljs.highlightElement(ref.current); } }, [state]);