[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [O] Bug: link formating problem [9.0.5 (9.0.5-elpaplus @ /Users/mist
From: |
Chunyang Xu |
Subject: |
Re: [O] Bug: link formating problem [9.0.5 (9.0.5-elpaplus @ /Users/mistkafka/.emacs.d/elpa/org-plus-contrib-20170210/)] |
Date: |
Wed, 24 May 2017 21:48:45 +0800 |
User-agent: |
mu4e 0.9.19; emacs 25.2.1 |
Nicolas Goaziou writes:
> Hello,
>
> 林镇国 <address@hidden> writes:
>
>> When I insert a link to my note, such as“这是一个[[link][链接]]啦~”,
>> the text after the link, "啦~", will be formatting as link style.
>
> FWIW, I cannot reproduce it, i.e., only "链接" appears with a link face.
I can reproduce if "link" is a real link and "description" doesn't
contain white space, for example,
[[http://example.com/][Example]]blah
^^^^
Also under the org-link face
It looks like `org-plain-link-re' doesn't think a link is end unless
a punctuation character is found:
org-plain-link-re
(concat
"\\<" types-re ":"
"\\([^ \t\n()<>]+\\(?:([[:word:]0-9_]+)\\|\\([^[:punct:] \t\n]\\|/\\)\\)\\)")
^^^^^^^^^^^^^^^^^
It is a reasonable assumption for English, but not for Chinese.
> Regards,