mirror of
https://github.com/usememos/memos.git
synced 2025-12-21 16:20:54 +08:00
13 lines
327 B
TypeScript
13 lines
327 B
TypeScript
import TeX from "@matejmazur/react-katex";
|
|
import "katex/dist/katex.min.css";
|
|
|
|
interface Props {
|
|
content: string;
|
|
block?: boolean;
|
|
}
|
|
|
|
const Math: React.FC<Props> = ({ content, block }: Props) => {
|
|
return <TeX className="max-w-full inline-block overflow-auto" block={block} math={content}></TeX>;
|
|
};
|
|
|
|
export default Math;
|