diff --git a/packages/react-notion-x/src/third-party/equation.tsx b/packages/react-notion-x/src/third-party/equation.tsx index 9a7d870b1..23cf6d7dd 100644 --- a/packages/react-notion-x/src/third-party/equation.tsx +++ b/packages/react-notion-x/src/third-party/equation.tsx @@ -7,6 +7,7 @@ import { useNotionContext } from '../context' import { cs } from '../utils' const katexSettings = { + displayMode: false, throwOnError: false, strict: false } @@ -20,7 +21,7 @@ export const Equation: React.FC<{ const { recordMap } = useNotionContext() math = math || getBlockTitle(block, recordMap) if (!math) return null - + katexSettings.displayMode = !inline return (