chore: fix inline latext renderer

This commit is contained in:
Steven 2023-11-22 22:38:03 +08:00
parent bcd8a5a7a9
commit b1128fc786

View File

@ -13,9 +13,9 @@ const inlineRenderer = (rawStr: string) => {
latexCode = matchResult[2]; latexCode = matchResult[2];
} }
return ( return (
<div className="max-w-full overflow-x-auto"> <span className="max-w-full overflow-x-auto">
<TeX key={latexCode}>{latexCode}</TeX> <TeX key={latexCode}>{latexCode}</TeX>
</div> </span>
); );
} }
return rawStr; return rawStr;