shikijs / twoslash

You take some Shiki, add a hint of TypeScript compiler, and 🎉 incredible static code samples
https://shikijs.github.io/twoslash/
MIT License
1.08k stars 53 forks source link

Hidden code blocks create <undefined/> in docusaurus #73

Closed 3Shain closed 3 years ago

3Shain commented 3 years ago
```twoslash include main
// some code
becomes
```html
<undefined></undefined>

in docusaurus (version 2.0.0-beta.3)

frencojobs commented 3 years ago

Thanks for the report, a fix is on the way.

OliverJAsh commented 2 years ago

I'm still running into this issue, running all of the latest versions. It looks like the fix in https://github.com/shikijs/twoslash/pull/74 would only help when wrapFragments is set to true?