The width of separator character which is used to display horizontal rule is 2 in CJK language settings(Chinese, Korean, Japanese etc), so markdown-mode should consider its character width.
CJK users should set terminal configuration of ambiguous character width correctly. For example Gnome Terminal, set Ambiguous-Width Characters to Wide. If not, it looks like as below, the separator line is too short. Because char-width returns 2(full-width) but display width is 1(half-width).
If your terminal does not support CJK ambiguous characters, then you should remove such characters from markdown-hr-display-char like
(setq markdown-hr-display-char '(?-))
Related Issue
753
Type of Change
[x] Bug fix (non-breaking change which fixes an issue)
Checklist
[x] I have read the CONTRIBUTING.md document.
[x] I have updated the documentation in the README.md file if necessary.
[x] I have added an entry to CHANGES.md.
[ ] I have added tests to cover my changes.
[x] All new and existing tests passed (using make test).
Description
The width of separator character which is used to display horizontal rule is 2 in CJK language settings(Chinese, Korean, Japanese etc), so markdown-mode should consider its character width.
Original version
This PR version
Note
CJK users should set terminal configuration of ambiguous character width correctly. For example Gnome Terminal, set
Ambiguous-Width Characters
toWide
. If not, it looks like as below, the separator line is too short. Becausechar-width
returns 2(full-width) but display width is 1(half-width).If your terminal does not support CJK ambiguous characters, then you should remove such characters from
markdown-hr-display-char
likeRelated Issue
753
Type of Change
Checklist
make test
).This is difficult to test