Forum Bugs

Fence operators are stretched incorrectly with <mtable> in MathML

Pop_Slime
The following MathML produces a formula with an incorrectly stretched open curly bracket.

```
<math><mrow><mi>S</mi></mrow><mo>=</mo><mrow><mo>{</mo><mtable>
<mtr><mtd><mn>0</mn></mtd><mtd><mtext>if&nbsp;</mtext><mi>i</mi><mo>=</mo><mn>0</mn><mo>;</mo></mtd></mtr>
<mtr><mtd><mn>1</mn></mtd><mtd><mtext>if&nbsp;</mtext><mi>i</mi><mo>=</mo><mn>1</mn><mo>;</mo></mtd></mtr>
<mtr><mtd><mn>2</mn></mtd><mtd><mtext>if&nbsp;</mtext><mi>i</mi><mo>=</mo><mn>2</mn><mo>;</mo></mtd></mtr>
<mtr><mtd><mn>3</mn></mtd><mtd><mtext>otherwise</mtext><mo>.</mo></mtd></mtr>
</mtable></mrow></math>
```

The expected and actual results are shown in the attached images.

Also consider using bracket pieces (such as U+239B) instead of stretching the glyph directly if possible (Check if these glyphs are available in the font first.)

Prince Version: 15.3
  1. 20240526225428.png6.1 kB
    Actual result
  2. 20240526225535.png2.2 kB
    Expected result (Chrome)
mikeday
Apologies, our focus at the moment is on supporting MathML via third-party JavaScript libraries like MathJax and KaTeX, although it would be nice to do a better job of rendering it natively also.
Pop_Slime
That would be nice as well. Thanks for your reply!