Skip to content

Commit 63076df

Browse files
committed
fix(shiki): remove deprecated transforms
1 parent f14a812 commit 63076df

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/runtime/shiki/highlighter.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -71,7 +71,7 @@ export const useShikiHighlighter = createSingleton((opts?: any) => {
7171
lang,
7272
themes: themesObject,
7373
defaultColor: false,
74-
transforms: {
74+
transformers: [{
7575
line(node, line) {
7676
node.properties ||= {}
7777
if (highlights.includes(line)) {
@@ -108,7 +108,7 @@ export const useShikiHighlighter = createSingleton((opts?: any) => {
108108
}
109109
}
110110
},
111-
}
111+
}]
112112
})
113113

114114
const preEl = root.children[0] as Element

0 commit comments

Comments
 (0)