fcrespo82 / atom-markdown-table-formatter

A simple markdown plugin to format tables.
MIT License
21 stars 7 forks source link

Can not recognize some format #11

Closed ericyangpan closed 9 years ago

ericyangpan commented 9 years ago

aaa|dafdas|adfas ----\t| ----\t| --- asdf|asadf|sdfas

will be formated to:

aaa|dafdas|adfas ----\t| ----\t:----- asdf

fcrespo82 commented 9 years ago

\t is not a valid char inside the formatting line and changing \t for the actual tab char formats it properly as:

| aaa  | dafdas | adfas |
|:-----|:-------|:------|
| asdf | asadf  | sdfas |

Could you explain a little better and show some context?

lierdakil commented 9 years ago

No, it's a valid bug. Basically, OP example should not format at all. I'll merge relevant changes in a second.

lierdakil commented 9 years ago

Oops, sorry, not yet

fcrespo82 commented 9 years ago

Ohh, I see. It should not format that... that's right...

I'll publish when its ready

lierdakil commented 9 years ago

It should be good to publish. Reopening until fix is live.

fcrespo82 commented 9 years ago

It's LIVE!

ericyangpan commented 9 years ago

cool