TomasHubelbauer / vscode-markdown-table-format

Formats tables in MarkDown documents when using the Format Document editor context menu option in VS Code.
MIT License
14 stars 5 forks source link

Chinese character misplacement #2

Closed sjlei closed 4 years ago

sjlei commented 5 years ago

This plugin is great but support for Chinese characters is not very good. please see the picture below.

what is this question? How to solve it? Thank you!


这个插件做的非常棒!但是对于中文字符的支持不是很好,请看图片,这是什么问题? 怎么解决?谢谢!

TomasHubelbauer commented 5 years ago

I will take a look, thanks for sending the repro case! I am not sure if this is caused by me indexing a string (which I think should be fine in newer versions of JS languages) or if it is because the VS Code API function for getting characters and lines, but I'll try this and find out.

sjlei commented 4 years ago

I've found the reason. It's because of the font. When I change to an monospaced font, the problem will be solved.

TomasHubelbauer commented 4 years ago

Thanks for reporting this!