TyOverby / Pipe

Mozilla Public License 2.0
21 stars 1 forks source link

Math expressions can't be split between multiple lines #42

Closed meyerkizner closed 10 years ago

meyerkizner commented 10 years ago

The parser rejects the following markup:

|math
  :sin(
    2 :times :theta
  )

If I make the math block join the lines together before passing the text to the math parser, the test passes—but I'm not sure that's the correct solution as that wouldn't work for |equation.

meyerkizner commented 10 years ago

I have a tentative fix on branch unstable (at d4622a5) but there are two unit tests that fail, the last two in MathBlocksTest. I'm not sure that those tests are correct; my thought is that |equation lines in the Vulcan input should correspond to equation lines in the TeX output unless they're within parentheses or another grouping symbol. Otherwise I'm not sure how we would handle alignment in such an equation block.