takumisoft68 / vscode-markdown-table

A vscode extension to add markdown table features.
Apache License 2.0
106 stars 10 forks source link

Emoji length leads to alignment issues. #22

Closed ztatlock closed 3 years ago

ztatlock commented 3 years ago

Many thanks for the excellent extension!

One issue I have noticed is that alignment does not take into account multi-character sequences like emojis:

| C1          | C2        |
| ----------- | --------- |
| 🧪        | Some text |
| Another row | More text |

Any advice on how to work around this issue would be much appreciated. Thanks again for the great work!!

takumisoft68 commented 3 years ago

@ztatlock Thank you for using this extension.

I have fixed up handling of zenkaku and surrogate pair at 0.5.2. However, most emoji doesn't have coordinated width in most monospaced fonts. So alignment still be slipped. Sorry...