jakewvincent / mkdnflow.nvim

Fluent navigation and management of markdown notebooks
GNU General Public License v3.0
684 stars 41 forks source link

Bug: Escaped pipes in tables are treated like unescaped pipes when adding columns #244

Open jakewvincent opened 2 months ago

jakewvincent commented 2 months ago

When the cursor is in a column in which a cell contains an escaped pipe, the result of inserting a column is incorrect. For example, if the cursor is anywhere in column 2 in this table and <leader>ic is entered, a column is added, but Val3 is placed in the newly added column instead of remaining in the current column.

Input

| Test | Test       |
| ---- | ---------- |
| Val1 | Val1\|Val3 |
| Val2 | Val2       |

Output

| Test | Test       |      |
| ---- | ---------- | ---- |
| Val1 | Val1\|     | Val3 |
| Val2 | Val2       |      |