vim-easy-align
vim-easy-align copied to clipboard
Align error with markdown table syntax and escape character
With the following table in markdown:
## 窗口与跳转
| 快捷键| 原指令 | 描述
| -----| ----- | ----
| | CTRL-O或CTRL-I | 返回光标上一个/下一个所在位置
|;n| :NERDTreeToggle | 打开目录
| | CTRL-W \| | 将当前窗口的宽度设置为尽可能最宽
after easy-align, I get:
## 窗口与跳转
| 快捷键 | 原指令 | 描述
| ----- | ----- | ----
| | CTRL-O或CTRL-I | 返回光标上一个/下一个所在位置
| ;n | :NERDTreeToggle | 打开目录
| ;m | :TagbarToggle | 打开tag列表
| | CTRL-W \ | | 将当前窗口的宽度设置为尽可能最宽
obviously, the last line is wrong.
\|
means a single |
to show in the table, while the \
is the escape character. The following |
is the table syntax.
The correct result should be:
## 窗口与跳转
| 快捷键 | 原指令 | 描述
| ----- | ----- | ----
| | CTRL-O或CTRL-I | 返回光标上一个/下一个所在位置
| ;n | :NERDTreeToggle | 打开目录
| ;m | :TagbarToggle | 打开tag列表
| | CTRL-W \| | 将当前窗口的宽度设置为尽可能最宽
Did you figure a solution to this?
Edit #59 seems to have the solution to this.