mirror of
https://github.com/usememos/memos.git
synced 2025-06-05 22:09:59 +02:00
fix: parse inline latex as a inline element (#2525)
* fix: parse inline latex as a inline element * Update web/src/labs/marked/parser/InlineLatex.tsx --------- Co-authored-by: zty <zty.dev@outlook.com> Co-authored-by: boojack <stevenlgtm@gmail.com>
This commit is contained in:
@@ -12,11 +12,9 @@ const inlineRenderer = (rawStr: string) => {
|
||||
} else if (matchResult[2]) {
|
||||
latexCode = matchResult[2];
|
||||
}
|
||||
return (
|
||||
<div className="w-full max-w-full overflow-x-auto">
|
||||
return <div className="max-w-full overflow-x-auto">
|
||||
<TeX key={latexCode}>{latexCode}</TeX>
|
||||
</div>
|
||||
);
|
||||
}
|
||||
return rawStr;
|
||||
};
|
||||
|
Reference in New Issue
Block a user