fix: make code blocks when grammar is not found consistent with code blocks with known grammar

This commit is contained in:
Dorian Niemiec 2024-09-08 11:44:17 +02:00
parent 4001e1b681
commit fb48d4232d

View file

@ -121,11 +121,6 @@ const customPortableTextComponents: PortableTextComponents = {
if (!grammar) { if (!grammar) {
console.error(`No grammar found for language: "${language}"`); console.error(`No grammar found for language: "${language}"`);
return (
<pre className="p-4 rounded-md overflow-x-auto text-sm">
<code>{value.code}</code>
</pre>
);
} }
return ( return (