) {
const [codeElement, setCodeElement] = React.useState(
<>
-
+
{code}
-
+
{code}
>
@@ -130,6 +134,9 @@ function CodeBlock(props: React.HTMLProps) {
setCodeElement(
pre]:h-full [&>pre]:rounded-none' : ''
+ } `}
dangerouslySetInnerHTML={{ __html: htmls.join('') }}
ref={ref}
/>
@@ -142,7 +149,11 @@ function CodeBlock(props: React.HTMLProps
) {
className={`${props.className} w-full max-w-full relative not-prose`}
style={props.style}
>
-
+
{lang ?
{lang}
: null}