File tree 1 file changed +21
-4
lines changed
plugins/markdown/plugin-shiki/src/node/transformers
1 file changed +21
-4
lines changed Original file line number Diff line number Diff line change @@ -24,28 +24,45 @@ export const getTransformers = (
24
24
const transformers : ShikiTransformer [ ] = [ ]
25
25
26
26
if ( options . notationDiff ) {
27
- transformers . push ( transformerNotationDiff ( ) )
27
+ transformers . push (
28
+ transformerNotationDiff ( {
29
+ matchAlgorithm : 'v3' ,
30
+ } ) ,
31
+ )
28
32
}
29
33
30
34
if ( options . notationFocus ) {
31
35
transformers . push (
32
36
transformerNotationFocus ( {
33
37
classActiveLine : 'has-focus' ,
34
38
classActivePre : 'has-focused-lines' ,
39
+ matchAlgorithm : 'v3' ,
35
40
} ) ,
36
41
)
37
42
}
38
43
39
44
if ( options . notationHighlight ) {
40
- transformers . push ( transformerNotationHighlight ( ) )
45
+ transformers . push (
46
+ transformerNotationHighlight ( {
47
+ matchAlgorithm : 'v3' ,
48
+ } ) ,
49
+ )
41
50
}
42
51
43
52
if ( options . notationErrorLevel ) {
44
- transformers . push ( transformerNotationErrorLevel ( ) )
53
+ transformers . push (
54
+ transformerNotationErrorLevel ( {
55
+ matchAlgorithm : 'v3' ,
56
+ } ) ,
57
+ )
45
58
}
46
59
47
60
if ( options . notationWordHighlight ) {
48
- transformers . push ( transformerNotationWordHighlight ( ) )
61
+ transformers . push (
62
+ transformerNotationWordHighlight ( {
63
+ matchAlgorithm : 'v3' ,
64
+ } ) ,
65
+ )
49
66
transformers . push ( transformerMetaWordHighlight ( ) )
50
67
}
51
68
You can’t perform that action at this time.
0 commit comments