From 1cab926d89fc40530e519cedc4ba8b023c18bfb1 Mon Sep 17 00:00:00 2001 From: Deepak Prabhakara Date: Wed, 1 Nov 2023 22:55:18 +0000 Subject: [PATCH] fixed Prism --- src/theme/CodeBlock/index.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/theme/CodeBlock/index.js b/src/theme/CodeBlock/index.js index 58c52657..1f1526e2 100644 --- a/src/theme/CodeBlock/index.js +++ b/src/theme/CodeBlock/index.js @@ -1,7 +1,7 @@ import React from 'react'; import CodeBlock from '@theme-original/CodeBlock'; -import Prism from 'prism-react-renderer/prism'; +import { Prism } from 'prism-react-renderer'; (typeof global !== 'undefined' ? global : window).Prism = Prism; require('prismjs/components/prism-ruby');