Unverified Commit 2d34615e authored by zty's avatar zty Committed by GitHub

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: 's avatarzty <zty.dev@outlook.com>
Co-authored-by: 's avatarboojack <stevenlgtm@gmail.com>
parent 4da3c1d5
......@@ -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;
};
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment