zestedesavoir / zmarkdown

Live demo: https://zestedesavoir.github.io/zmarkdown/
MIT License
224 stars 52 forks source link

[rebber-plugins]Escapement issue with command inside command #477

Closed artragis closed 1 year ago

artragis commented 1 year ago

When using rebber with rebber-plugin, especially the math plugin, we have issues with escaping

Input

$$\Delta \varphi = 2 \pi f \Delta t_{orange/bleu} = -\frac{\pi}{4}$$

Actual Output

$$\Delta \varphi = 2 \pi f \Delta t_{orange/bleu} = -\frac{ {4}}$$

Expected output

$$\Delta \varphi = 2 \pi f \Delta t_{orange/bleu} = -\frac{\pi}{4}$$

Note : the issue is also present in the full display version of math.

The \frac{\pi}{4} is transformed into \frac{{4}}