mirror of https://github.com/buster-so/buster.git
pre cannot be a decendant of p
This commit is contained in:
parent
3a78dc0514
commit
adf6d06995
|
@ -299,9 +299,9 @@ export const CodeComponent: React.FC<
|
|||
|
||||
if (isInline) {
|
||||
return (
|
||||
<pre style={style} className={cn(className, 'bg-item-select rounded-sm border px-1')}>
|
||||
<code style={style} className={cn(className, 'bg-item-select rounded-sm border px-1')}>
|
||||
{children}
|
||||
</pre>
|
||||
</code>
|
||||
);
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue