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' }), }) );