Skip to content

Commit

Permalink
fix(vitepress-twoslash): pass options.twoslashOptions to `createTwo…
Browse files Browse the repository at this point in the history
…slasher` (#637)
  • Loading branch information
sapphi-red committed Mar 23, 2024
1 parent be74312 commit 75832e1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/vitepress-twoslash/src/index.ts
Expand Up @@ -40,7 +40,7 @@ export function transformerTwoslash(options: VitePressPluginTwoslashOptions = {}
}

const twoslash = createTransformerFactory(
createTwoslasher(),
createTwoslasher(options.twoslashOptions),
)({
langs: ['ts', 'tsx', 'js', 'jsx', 'json', 'vue'],
renderer: rendererFloatingVue(options),
Expand Down

0 comments on commit 75832e1

Please sign in to comment.