You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The meta options from Twoslash transformer is passed to another this.codeToHast to render codeblocks in popups.
However, the meta isn't supposed to be inherited on child codeblocks.
An example is that if we have a title meta like { title: "Test", __raw: "something else" }, this will cause the code blocks in popups also inherit the same title.
Validations
Describe the bug
See
shiki/packages/twoslash/src/renderer-rich.ts
Line 242 in 69b32a3
The meta options from Twoslash transformer is passed to another
this.codeToHast
to render codeblocks in popups.However, the meta isn't supposed to be inherited on child codeblocks.
An example is that if we have a
title
meta like{ title: "Test", __raw: "something else" }
, this will cause the code blocks in popups also inherit the same title.Reproduction
https://codesandbox.io/p/devbox/amazing-fast-gkzsks
Contributes
The text was updated successfully, but these errors were encountered: