takumisoft68 / vscode-markdown-table

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

feature-request: Whether it is possible to use em Spaces instead of en Spaces #67

Open Linhieng opened 7 months ago

Linhieng commented 7 months ago

Since the common monospaced CJK (Chinese, Japanese, Korean) full-width characters and Latin half-width characters usually do not have a 2:1 width ratio, although some special fonts can force them to be 2:1, the visual effect is very poor.

A good solution is to calculate the number of full-width characters in the table and then render the corresponding full-width spaces, which can perfectly solve the alignment problem.

I have had this idea for a long time, but I have never had enough ability and time to implement it. Therefore, I am considering raising this issue. I wonder if this feature is considered complex for you as the author.

Finally, thank you for developing this extension, it is very useful! 😀

image

takumisoft68 commented 3 months ago

Thank you for using.

It's an interesting idea. But it has a problem. Such a table will be formatted with too much spaces.

image

image