nextjs-notion-starter-kit
nextjs-notion-starter-kit copied to clipboard
equation render bug
Description
Thanks very much for your app. But I have a equation render bug like this.
It seems that the KaTeX render wrong and the error is that "ParseError: KaTeX parse error: {equation} can be used only in display mode."
Could you please tell me how to fix this?
Thanks!
Notion Page ID
My notion page ID is d8c0b86e67744763859377c071fbfd07
It has to be in its own block, i.e. "display mode" of KaTeX. The equation environment can't be rendered inline.
It has to be in its own block, i.e. "display mode" of KaTeX. The
equationenvironment can't be rendered inline.
I check the code, and found that the inline and block equation in the notion both are treated as "text mode" of KaTeX when render them in the Web. But it should be that the inline equation is treated as “text mode” and block equation is treated as "display mode". So how do I fix that?Thanks!
Yeah it seems the block equation is detected as notion-equation-block but KaTeX still thinks it's in text mode. Perhaps the issue lies in https://github.com/NotionX/react-notion-x/blob/master/packages/react-notion-x/src/third-party/equation.tsx?
I have the same question, is this problem solved now?