mirror of
https://github.com/facebook/docusaurus.git
synced 2025-07-31 23:40:39 +02:00
fix(v2): render correct theme for live code blocks on SSR (#2227)
This commit is contained in:
parent
c0bacfd9f9
commit
95caf833d8
1 changed files with 1 additions and 0 deletions
|
@ -78,6 +78,7 @@ export default ({
|
|||
if (live) {
|
||||
return (
|
||||
<Playground
|
||||
key={mounted}
|
||||
scope={{...React}}
|
||||
code={children.trim()}
|
||||
theme={prismTheme}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue