conventionalcommits.org
conventionalcommits.org copied to clipboard
zh/ja show unncessary spaces are generated from Markdown newlines
Markdown translates newlines to spaces, which works pretty well for languages that use spaces but not for others like Chinese and Japanese. These languages don't usually use spaces between words, and they definitely don't need spaces after their full-width punctuation marks that already give the space space. But, well, the nicely-newlined summary part are showing spaces everywhere as a result of this neatness. Copy the zh summary into a code editor and you will see it.
We should either ask the Markdown engine to do this (which Hugo cannot do; its CJK support is only for word count) or sacrifise this neatness of source away in these languages. Maybe we should even leave a note for translators who later do similar languages.
Hey @Artoria2e5 ! Thanks for the feedback! Do you want to prepare a PR for that? It would be awesome!
It is going to mess up a lot of diffs, so I figured that you can maybe @ me before a release to do that…