File tree Expand file tree Collapse file tree 1 file changed +3
-5
lines changed Expand file tree Collapse file tree 1 file changed +3
-5
lines changed Original file line number Diff line number Diff line change @@ -17,7 +17,7 @@ if (typeof window !== 'undefined') {
17
17
}
18
18
19
19
// ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
20
- export const PREPARE_MDX_CACHE_BREAKER = 3 ;
20
+ export const PREPARE_MDX_CACHE_BREAKER = 4 ;
21
21
// !!! IMPORTANT !!! Bump this if you change any logic.
22
22
// ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
23
23
@@ -95,10 +95,8 @@ function highlightCodeBlocksRecursively(
95
95
} ;
96
96
if (
97
97
child . type === 'code' &&
98
- // @ts -ignore
99
- parentPath . at ( - 1 ) === 'pre' && // Don't highlight inline text
100
- // @ts -ignore
101
- parentPath . at ( - 2 ) !== 'Sandpack' // Interactive snippets highlight on the client
98
+ parentPath [ parentPath . length - 1 ] === 'pre' && // Don't highlight inline text
99
+ parentPath [ parentPath . length - 2 ] !== 'Sandpack' // Interactive snippets highlight on the client
102
100
) {
103
101
overrideProps . highlightedCode = prepareCodeBlockChildren (
104
102
props . children ,
You can’t perform that action at this time.
0 commit comments