laughinghan/mathquill — Issue #68: Nested absolute values rendered incorrectly
Author: pesasa
Created: 2012-03-06 13:18:04+00:00
State: open

Left and right limiters of absolute values are mixed, if absolute values are nested. (`\left|` and `\right|`)

Steps to reproduce:
1) Go to demo page: http://laughinghan.github.com/mathquill/demo.html
2) On mathquill input box write: `|a+b` this should give: |a+b|
3) Select `b` and hit `|`.
4) Mathquill shows now: |a+|b|| and LaTeX source box has: `\left|a+\left|b\right|\right|`
5) Add a white space in the end of LaTeX source.
6) Mathquill shows the formula not as two nested absolute values, but as two separate absolute values where the second one is empty: |a+| b |` `|

So in fact the Latex source `\left|a+\left|b\right|\right|` is rendered as source `\left|a+\right|b\left|\right|`.