advanced-tables-obsidian icon indicating copy to clipboard operation
advanced-tables-obsidian copied to clipboard

Tab while writing in latex math will include pipes in the latex command

Open Nixxen opened this issue 2 years ago • 1 comments

Describe the bug Pressing tab while writing in latex math will include pipes in the latex command.

To Reproduce Steps to reproduce the behavior:

  1. Make a basic table with headings.
  2. Add latex commands, and press tab to auto-space the pipes.
  3. Notice how it will snap to the pipes inside the latex math command

Expected behavior That pressing tab, either within or outside a latex math bracket, should snap to the next pipe not inside a latex math bracket - and ignore anything inside the latex math bracket.

Screenshots If applicable, add screenshots to help explain your problem.

Desktop (please complete the following information):

  • OS: Windows 10 x64 v2004
  • Obsidian Version: 0.13.19
  • Advanced Tables Version: 0.17.2

Additional context Example table

|   Prior    | Likelihood |     Samsanns.      | Posterior |          |     |
|:----------:|:----------:|:------------------:|:---------:| -------- | --- |
| $P(A_{k})$ |    $P(B|A_{k})$       | P(A_{k}B) | $P(A_{k} | B)$ |
|            |            | $P(B)=\sum\limits$ |           |          |     |

Nixxen avatar Jan 27 '22 11:01 Nixxen

To clarify: It is expected that the $$ of the latex section also be ignored when attempting to find the correct location for the next pipe character.

Nixxen avatar Jan 27 '22 13:01 Nixxen