jgm / typst-hs

Haskell library for parsing and evaluating typst
Other
44 stars 5 forks source link

Another precedence issue in math parsing #55

Open mathmil opened 2 days ago

mathmil commented 2 days ago

Thanks for fixing my last bug report so quickly, this one is quite similar. typst:

$
  (b)(c)/(d)
  !(a)/(b)
  \ !(a)/(b)
$

typst output: typst

pandoc latex output, identical for newest nightly build and newest release:

\[\begin{array}{r}
\frac{(b)(c)}{d}\frac{!(a)}{b} \\
!\frac{a}{b}
\end{array}\]

Only the first two cases are wrong, but I find it weird that the second and third one differ.