Spaces:
Running
Running
File size: 549 Bytes
7198b5e | 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 | "use client";
import { InlineMath as KInline, BlockMath as KBlock } from "react-katex";
import { cn } from "@/lib/utils";
export function M({ children, className }: { children: string; className?: string }) {
return (
<span className={cn("font-mono", className)}>
<KInline math={children} />
</span>
);
}
export function MBlock({
children,
className,
}: {
children: string;
className?: string;
}) {
return (
<div className={cn("my-4 text-[1.05rem]", className)}>
<KBlock math={children} />
</div>
);
}
|