rpeshkov / vscode-text-tables

VSCode extension that brings the power of Emacs table editing
MIT License
38 stars 14 forks source link

Wrong behavior of handling markdown inline code block contain " | " #42

Open hyacz opened 5 years ago

hyacz commented 5 years ago

Hi, Peshkov

Thank you for developing such a great plugin. I found a wrong behavior of handling markdown inline code block contain " | ". Below is my software environment and reproducible steps:

Reproducible steps that cause the issue

copy bellow table to vscode

| A | B |
| --- | --- |
| `a | b` | `a || b` |

then execute command Text Tables: Format under cursor(^Q ^F)

What I expected to see and what I saw instead

I expected to see

| A       | B        |
| ------- | -------- |
| `a | b` | `a || b` |

but i saw this instead

| A   | B   |     |     |     |
| --- | --- | --- | --- | --- |
| `a  | b`  | `a  |     | b`  |