fix: ssr fixes

This commit is contained in:
Philipp Mieden 2025-09-18 13:54:18 +02:00
parent e8e443f1e0
commit e17d1f23b6

View File

@ -168,7 +168,7 @@ const LZString = (() => {
export const TypeScriptPlayground = (props: { children: string }) => { export const TypeScriptPlayground = (props: { children: string }) => {
const url = const url =
"https://www.typescriptlang.org/play?#code/" + "https://www.typescriptlang.org/play?#code/" +
escape(LZString.compressToEncodedURIComponent(props.children)); encodeURIComponent(LZString.compressToEncodedURIComponent(props.children));
return ( return (
<div> <div>
<Highlight {...defaultProps} code={props.children} language="tsx"> <Highlight {...defaultProps} code={props.children} language="tsx">