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.06k stars 51 forks source link

[Docusaurus] Breaks snippets outside of markdown files #187

Open VincentQuillien opened 1 year ago

VincentQuillien commented 1 year ago

When rendering a CodeBlock in a React page the snippet has no style applied to it.

Capture d’écran 2023-06-25 à 18 23 20

Same thing when importing a markdown file with snippets inside a React page.

In standalone markdown files it works flawlessly though.

Docusaurus@2.4.1 docusaurus-preset-shiki-twoslash@1.1.41

orta commented 1 year ago

All styles are applied via (traditional) CSS, so you maybe need to make sure your classes are set up correctly