Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Docusaurus] Breaks snippets outside of markdown files #187

Open
VincentQuillien opened this issue Jun 25, 2023 · 1 comment
Open

[Docusaurus] Breaks snippets outside of markdown files #187

VincentQuillien opened this issue Jun 25, 2023 · 1 comment

Comments

@VincentQuillien
Copy link

VincentQuillien commented Jun 25, 2023

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
Copy link
Contributor

orta commented Aug 3, 2023

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants