* [BUG] Org mode does not recognize the last character "_" in URL link
@ 2022-10-18 4:02 Christopher M. Miles
2022-10-18 5:18 ` Ihor Radchenko
0 siblings, 1 reply; 3+ messages in thread
From: Christopher M. Miles @ 2022-10-18 4:02 UTC (permalink / raw)
To: Org mode
[-- Attachment #1: Type: text/plain, Size: 411 bytes --]
When URL has a character "_" at the end, Org mode can't fontify the URL
link correctly.
For example:
https://www.twitter.com/example_
--
[ stardiviner ]
I try to make every word tell the meaning that I want to express without misunderstanding.
Blog: https://stardiviner.github.io/
IRC(libera.chat, freenode): stardiviner, Matrix: stardiviner
GPG: F09F650D7D674819892591401B5DF1C95AE89AC3
[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 487 bytes --]
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: [BUG] Org mode does not recognize the last character "_" in URL link
2022-10-18 4:02 [BUG] Org mode does not recognize the last character "_" in URL link Christopher M. Miles
@ 2022-10-18 5:18 ` Ihor Radchenko
2022-10-19 7:44 ` Christopher M. Miles
0 siblings, 1 reply; 3+ messages in thread
From: Ihor Radchenko @ 2022-10-18 5:18 UTC (permalink / raw)
To: numbchild; +Cc: Org mode
"Christopher M. Miles" <numbchild@gmail.com> writes:
> When URL has a character "_" at the end, Org mode can't fontify the URL
> link correctly.
>
> For example:
>
> https://www.twitter.com/example_
Plain links are tricky. There is no definitive regexp to catch all
possible links. We use heuristics.
If you see anything we can improve in org-link-make-regexps, patches are
welcome.
--
Ihor Radchenko // yantar92,
Org mode contributor,
Learn more about Org mode at <https://orgmode.org/>.
Support Org development at <https://liberapay.com/org-mode>,
or support my work at <https://liberapay.com/yantar92>
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: [BUG] Org mode does not recognize the last character "_" in URL link
2022-10-18 5:18 ` Ihor Radchenko
@ 2022-10-19 7:44 ` Christopher M. Miles
0 siblings, 0 replies; 3+ messages in thread
From: Christopher M. Miles @ 2022-10-19 7:44 UTC (permalink / raw)
To: Ihor Radchenko; +Cc: numbchild, Org mode
[-- Attachment #1: Type: text/plain, Size: 941 bytes --]
Ihor Radchenko <yantar92@posteo.net> writes:
> "Christopher M. Miles" <numbchild@gmail.com> writes:
>
>> When URL has a character "_" at the end, Org mode can't fontify the URL
>> link correctly.
>>
>> For example:
>>
>> https://www.twitter.com/example_
>
> Plain links are tricky. There is no definitive regexp to catch all
> possible links. We use heuristics.
>
> If you see anything we can improve in org-link-make-regexps, patches are
> welcome.
I have checked out the function `org-link-make-regexps' source code, the
regexp is hard to understand for me. I will study it when I got time to
figure whether I can improve it. Thanks for your hint.
--
[ stardiviner ]
I try to make every word tell the meaning that I want to express without misunderstanding.
Blog: https://stardiviner.github.io/
IRC(libera.chat, freenode): stardiviner, Matrix: stardiviner
GPG: F09F650D7D674819892591401B5DF1C95AE89AC3
[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 487 bytes --]
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2022-10-19 7:46 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2022-10-18 4:02 [BUG] Org mode does not recognize the last character "_" in URL link Christopher M. Miles
2022-10-18 5:18 ` Ihor Radchenko
2022-10-19 7:44 ` Christopher M. Miles
Code repositories for project(s) associated with this public inbox
https://git.savannah.gnu.org/cgit/emacs/org-mode.git
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).