Soft line breaks `<br>` break math in tables

Steps to reproduce

  1. create table
  2. insert latex \begin(), \end()

Did you follow the troubleshooting guide? [Y/N]

Yes i use sandbox vault

Expected result

the table don’t show the

Actual result

the table show the

Environment


Additional information

Example markdown code producing the behaviour:

|     |                                                                                                                                            |
| --- | ------------------------------------------------------------------------------------------------------------------------------------------ |
|     | $$<br>\left\{<br>\begin{array}{c}<br>a_1x+b_1y+c_1z=d_1 \\<br>a_2x+b_2y+c_2z=d_2 \\<br>a_3x+b_3y+c_3z=d_3 <br>\end{array}<br>\right.<br>$$ |

This problem may not be resolved by Obsidian since MathJax takes input inside dollar signs $$ … $$. If Obsidian were to implement a solution, it would require additional method to scan the MathJax input for any <br> occurrences. And then should it just ignore these? What if <br> has some other meaning in the input? I think the solution isn’t straightforward because there might be formulas that utilise <br>—hence Obsidian cannot always ignore it.

Edit:

See this discussion for block comments in LaTeX:

Obviously regarding MathJax, the solutions proposed are not directly applicable to MathJax. If we could use block comments in MathJax then Obsidian could use that syntax to render MathJax line breaks inside tables.

1 Like

We do not and will not support line breaks (shift-enter <br>) in math block in tables.

Please, write the whole equation in a single source line.

Yes, you can’t put html tags inside a mathjax expression, you should use latex formatting facilities as the “aligned” environment (or interpolate mathjax and html, as in $expr1$<br>$expr2$.

Anyway, having written some big tables with math, as feature request I think It would be great to have UI making the magic to make users believe multiline table editions exist, while the real underlying markdown had one single line and some %%???%% marks denoting the EOL marks.