junegunn / junegunn/vim-easy-align
Align error with markdown table syntax and escape character
- Dominant language
- Vim Script
- Stars
- 4.2k
- Forks
- 122
- PR merge metrics
- No merged PRs in 30d
Description
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 \| | 将当前窗口的宽度设置为尽可能最宽
```
Contributor guide
No contributing guide indexed for this repository
Assessment
This issue has not been assessed yet.