Continued fraction in LaTeX "blackout" the app

Continued fraction, at a certain depth (7 on my machine), seems to make Obsidian crash, though the app doesn’t close completely like a normal crash.

Steps to reproduce

  1. Create a new note
  2. Paste in the following LaTeX code:
$$
365 + \cfrac{1}{4+\cfrac{1}{7+\cfrac{1}{1+\cfrac{1}{3+\cfrac{1}{24+\cfrac{1}{6+\cfrac{1}{2}}}}}}}
$$
  1. Switch to preview mode

Expected result

The expression rendered normally. VSCode renders the same LaTeX fine.

Actual result

The app “blackout”, i.e. the whole app window turns black, but it doesn’t close. Pressing Alt+F4 doesn’t close the app either, only Task Manager can.

Environment

  • Operating system: Windows 10
  • Obsidian version: v0.12.4

Additional information

I tried some other expressions and both \dfrac or \over with \displaystyle can crash the app with enough fraction. For example:

$$
365 + {1\over \displaystyle  4 + {
             1\over\displaystyle   7 + {
             1\over\displaystyle   1 + {
             1\over\displaystyle   3 + {
             1\over\displaystyle  24 + {
             1\over\displaystyle   6 + {
             1\over\displaystyle   2 + {
             1\over\displaystyle   2 + \cdots
           }}}}}}}}
$$

If you have this problem in 0.12.5, open a new bug report.

This topic was automatically closed 24 hours after the last reply. New replies are no longer allowed.