You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardexpand all lines: packages/transformers/src/shared/notation-transformer.ts
+4-3
Original file line number
Diff line number
Diff line change
@@ -26,10 +26,11 @@ export function createCommentNotationTransformer(
26
26
lines: Element[],
27
27
index: number
28
28
)=>boolean,
29
-
matchAlgorithm: MatchAlgorithm='v1',
29
+
matchAlgorithm: MatchAlgorithm|undefined,
30
30
): ShikiTransformer{
31
-
if(matchAlgorithm==='v1'){
32
-
warnDeprecated('`matchAlgorithm: "v1"` is deprecated and will be removed in the future. Please explicitly set `matchAlgorithm: "v3"` in the transformer options.',3)
31
+
if(matchAlgorithm==null){
32
+
matchAlgorithm='v1'
33
+
warnDeprecated('The default `matchAlgorithm: "v1"` is deprecated and will be removed in the future. Please explicitly set `matchAlgorithm: "v3"` in the transformer options.',3)
0 commit comments