website
website copied to clipboard
Line wrapping toggle not working

The toggle on the top right of the code block to line wrap doesn't do anything. Potentially due to the custom TS snippets we use with twoslash.
Yea this is an issue with the custom TS snippets (i.e. problem with shiki-twoslash). Will need to investigate further how to fix it.
The issue seems to be that when the button is clicked, the click handler is indeed applying the proper dataset attribute to the DOM, but the styles that are supposed to be applied when the button is clicked are not having the intended effect.
So more likely than not some shiki CSS is probably overriding the word wrap behavior that is supposed to be applied when the button is clicked.
I wonder if twoslash.css could have something added in it that would allow this to apply correctly.