Skip to content

Commit c983ada

Browse files
committed
add new matchAlgorithm option to transformer to get rid of shiki v2 deprecation notice
1 parent 655d204 commit c983ada

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

next.config.ts

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,9 @@ const nextConfig = (phase: string) => {
4242
block: 'tsx',
4343
inline: 'shell',
4444
},
45-
transformers: [transformerNotationDiff()],
45+
transformers: [transformerNotationDiff({
46+
matchAlgorithm: 'v3',
47+
})],
4648
}
4749

4850
// https://github.com/chrisweb/remark-table-of-contents#options

0 commit comments

Comments
 (0)