Re: [BUG] Org mode does not recognize the last character "_" in URL link

2022-10-19 Thread Christopher M. Miles

Ihor Radchenko  writes:

> "Christopher M. Miles"  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


signature.asc
Description: PGP signature


Re: [BUG] Org mode does not recognize the last character "_" in URL link

2022-10-17 Thread Ihor Radchenko
"Christopher M. Miles"  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 .
Support Org development at ,
or support my work at 



[BUG] Org mode does not recognize the last character "_" in URL link

2022-10-17 Thread Christopher M. Miles

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


signature.asc
Description: PGP signature