Christian Moe <[email protected]> writes:

> - But in any case, perhaps an export filter added to
>   `org-export-filter-link-functions' would be a slightly cleaner
>   approach than an export hook that has to `org-element-map' over the
>   links in the buffer?

This filter receives HTML link tag. It will complicate the replacement I
am afraid.

> We need to think about the description parts. See the Reddit link:
>
>   Browse _Org-mode discussions on reddit.com_ _(original URL)_
>
> Here it's actually the "(original URL)" link that points to reddit.com,
> while the link that seems to suggest it does, points to the alternative,
> which seems a bit confusing. It probably won't be the only link that
> refers to reddit.com, github.com or youtube.com in the description part.
> Should we just live with that, or should the code try to rewrite the
> description too (drop the ".com" bits)?

Maybe we can do simple regex search for reddit.com and similar urls and
warn about them. Instead, prefer Reddit, GitHub, etc.

-- 
Ihor Radchenko // yantar92,
Org mode maintainer,
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>

Reply via email to