fix: make code blocks when grammar is not found consistent with code blocks with known grammar
This commit is contained in:
parent
4001e1b681
commit
fb48d4232d
1 changed files with 0 additions and 5 deletions
|
@ -121,11 +121,6 @@ const customPortableTextComponents: PortableTextComponents = {
|
|||
|
||||
if (!grammar) {
|
||||
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 (
|
||||
|
|
Loading…
Reference in a new issue