From fd9a58d090b689a545477940e5b7c6f7a02aa4d3 Mon Sep 17 00:00:00 2001 From: Nolann Biron Date: Tue, 11 Mar 2025 14:03:00 +0100 Subject: [PATCH] Update target in shikin javascript engine --- .../gitbook/src/components/DocumentView/CodeBlock/highlight.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/gitbook/src/components/DocumentView/CodeBlock/highlight.ts b/packages/gitbook/src/components/DocumentView/CodeBlock/highlight.ts index 0456809a62..eb02b5b928 100644 --- a/packages/gitbook/src/components/DocumentView/CodeBlock/highlight.ts +++ b/packages/gitbook/src/components/DocumentView/CodeBlock/highlight.ts @@ -39,7 +39,7 @@ const { getSingletonHighlighter } = createSingletonShorthands( createdBundledHighlighter({ langs: bundledLanguages, themes: {}, - engine: () => createJavaScriptRegexEngine({ forgiving: true, target: 'ES2024' }), + engine: () => createJavaScriptRegexEngine({ forgiving: true, target: 'ES2018' }), }) );