Skip to content

Commit

Permalink
fix(v2): render correct theme for live code blocks on SSR (#2227)
Browse files Browse the repository at this point in the history
  • Loading branch information
lex111 authored and yangshun committed Jan 20, 2020
1 parent c0bacfd commit 95caf83
Showing 1 changed file with 1 addition and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -78,6 +78,7 @@ export default ({
if (live) {
return (
<Playground
key={mounted}
scope={{...React}}
code={children.trim()}
theme={prismTheme}
Expand Down

0 comments on commit 95caf83

Please sign in to comment.