Skip to content

Commit 75832e1

Browse files
authoredMar 23, 2024··
fix(vitepress-twoslash): pass options.twoslashOptions to createTwoslasher (#637)
1 parent be74312 commit 75832e1

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed
 

‎packages/vitepress-twoslash/src/index.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@ export function transformerTwoslash(options: VitePressPluginTwoslashOptions = {}
4040
}
4141

4242
const twoslash = createTransformerFactory(
43-
createTwoslasher(),
43+
createTwoslasher(options.twoslashOptions),
4444
)({
4545
langs: ['ts', 'tsx', 'js', 'jsx', 'json', 'vue'],
4646
renderer: rendererFloatingVue(options),

0 commit comments

Comments
 (0)
Please sign in to comment.