judemanutd / KaTeXView

KaTeX View for android
MIT License
55 stars 12 forks source link

Cannot render Latex with equation #10

Open uburoiubu opened 2 years ago

uburoiubu commented 2 years ago

Unable to render this latex:

\begin{equation}
  x = a_0 + \cfrac{1}{a_1 
          + \cfrac{1}{a_2 
          + \cfrac{1}{a_3 + \cfrac{1}{a_4} } } }\end{equation}

Error log:

[INFO:CONSOLE(0)] "The website requested a subresource from a network that it could only access because of its users' privileged network position. These requests expose non-public devices and servers to the internet, increasing the risk of a cross-site request forgery (CSRF) attack, and/or information leakage. To mitigate these risks, Chrome deprecates requests to non-public subresources when initiated from non-secure contexts, and will start blocking them in Chrome 92 (July 2021). See https://chromestatus.com/feature/5436853517811712 for more details.", source: about:blank (0)
E/GoLog: [INFO:CONSOLE(1)] "KaTeX auto-render: Failed to parse ` \begin{equation}
E/GoLog:   x = a_0 + \cfrac{1}{a_1 
E/GoLog:           + \cfrac{1}{a_2 
E/GoLog:           + \cfrac{1}{a_3 + \cfrac{1}{a_4} } } }\end{equation} ` with  ParseError: KaTeX parse error: No such environment: equation at position 8:  \begin{̲e̲q̲u̲a̲t̲i̲o̲n̲}̲
E/GoLog:   x = a_0 + \c…", source: file:///android_asset/katex/contrib/auto-render.min.js (1)

Seems to be related to this issue (https://github.com/KaTeX/KaTeX/issues/445), which is closed there.