dhruvasagar / vim-table-mode

VIM Table Mode for instant table creation.
2.1k stars 97 forks source link

Cannot add more than one formula in Markdown` #232

Open fancsali opened 9 months ago

fancsali commented 9 months ago

Using vim-table-mode for markdown files, starting with the following table:

|---|------|
| a | 5    |
| b | 6    |
| c | 9    |
| S | 20.0 |

First I use \tfa and type in a formula: f=Sum(1:3), which changes to table to the one below, as expected:

|---|------|
| a | 5    |
| b | 6    |
| c | 9    |
| S | 20.0 |
 <!-- tmf: $4,2=Sum(1:3) -->

However, after adding another row and trying to add the same (or any other) formula again, something strange happens and I end up with the old formula gone, and a new one - that's not working - added:

|---|------|
| a | 5    |
| b | 6    |
| c | 9    |
| S | 20.0 |
| D |      |        
; $5,2=Sum(1:3)
CaptainQuirk commented 6 months ago

Same here !

dhruvasagar commented 6 months ago

@fancsali Yea I can confirm this is an issue. Working on a fix.