summaryrefslogtreecommitdiffstats
path: root/src/components
diff options
context:
space:
mode:
authorArmand Philippot <git@armandphilippot.com>2022-02-08 15:03:53 +0100
committerArmand Philippot <git@armandphilippot.com>2022-02-08 15:06:11 +0100
commit5d79523eba4ec0a89668b904dc7896c843ab8dd6 (patch)
treeef456b0545fb566e7bbc9981c950ec013d8c7696 /src/components
parent8f0fadc3a1a331956bef3aa299a1c468927bcdf0 (diff)
refactor(prism): rename color scheme attributes and remove prefix
Diffstat (limited to 'src/components')
-rw-r--r--src/components/MDX/CodeBlock/CodeBlock.tsx2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/components/MDX/CodeBlock/CodeBlock.tsx b/src/components/MDX/CodeBlock/CodeBlock.tsx
index 45a6176..0c66311 100644
--- a/src/components/MDX/CodeBlock/CodeBlock.tsx
+++ b/src/components/MDX/CodeBlock/CodeBlock.tsx
@@ -34,7 +34,7 @@ const CodeBlock = ({
useEffect(() => {
const allPre: NodeListOf<HTMLPreElement> = document.querySelectorAll(
- 'pre[data-prismjs-color-scheme'
+ 'pre[data-prismjs-color-scheme-current]'
);
setCodeBlocks(allPre);
}, [setCodeBlocks, router.asPath]);