Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Align error with markdown table syntax and escape character #156

Open
yuesong-feng opened this issue Jan 12, 2023 · 1 comment
Open

Align error with markdown table syntax and escape character #156

yuesong-feng opened this issue Jan 12, 2023 · 1 comment

Comments

@yuesong-feng
Copy link

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 \|       | 将当前窗口的宽度设置为尽可能最宽
@MathieuDR
Copy link

MathieuDR commented Sep 16, 2023

Did you figure a solution to this?

Edit #59 seems to have the solution to this.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants