Skip to content

Commit

Permalink
fix(twoslash): meta should not pass to popup highlighting (#748)
Browse files Browse the repository at this point in the history
  • Loading branch information
fuma-nama authored Aug 19, 2024
1 parent 69b32a3 commit bbf37b1
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 1 deletion.
1 change: 1 addition & 0 deletions packages/twoslash/src/renderer-rich.ts
Original file line number Diff line number Diff line change
Expand Up @@ -240,6 +240,7 @@ export function rendererRich(options: RendererRichOptions = {}): TwoslashRendere
content,
{
...this.options,
meta: {},
transformers: [],
lang: (this.options.lang === 'tsx' || this.options.lang === 'jsx')
? 'tsx'
Expand Down
2 changes: 1 addition & 1 deletion packages/twoslash/test/out/rich/rich.html

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

3 changes: 3 additions & 0 deletions packages/twoslash/test/rich.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -68,6 +68,9 @@ Number.parseInt(todo.title, 10);
light: 'vitesse-light',
},
defaultColor: false,
meta: {
title: 'test',
},
transformers: [
transformerTwoslash({
renderer: rendererRich(),
Expand Down

0 comments on commit bbf37b1

Please sign in to comment.