From bc6fed771ca09de583b4bdbd03469a75e0b6b4e8 Mon Sep 17 00:00:00 2001 From: Gervwyk Date: Thu, 14 Apr 2022 21:39:44 +0200 Subject: [PATCH] fix(blocks-markdown): Fix react-syntax-highlighter styles import. --- .../src/blocks/MarkdownWithCode/MarkdownWithCode.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/plugins/blocks/blocks-markdown/src/blocks/MarkdownWithCode/MarkdownWithCode.js b/packages/plugins/blocks/blocks-markdown/src/blocks/MarkdownWithCode/MarkdownWithCode.js index 83b411353..3edfc8408 100644 --- a/packages/plugins/blocks/blocks-markdown/src/blocks/MarkdownWithCode/MarkdownWithCode.js +++ b/packages/plugins/blocks/blocks-markdown/src/blocks/MarkdownWithCode/MarkdownWithCode.js @@ -22,7 +22,7 @@ import ReactMarkdown from 'react-markdown'; import gfm from 'remark-gfm'; // See https://github.com/react-syntax-highlighter/react-syntax-highlighter/issues/393 for esm issue. -import { github } from 'react-syntax-highlighter/dist/cjs/styles/hljs'; +import { github } from 'react-syntax-highlighter/dist/cjs/styles/hljs/index.js'; import javascript from 'react-syntax-highlighter/dist/cjs/languages/hljs/javascript.js'; import typescript from 'react-syntax-highlighter/dist/cjs/languages/hljs/typescript.js'; import python from 'react-syntax-highlighter/dist/cjs/languages/hljs/python.js';