Hello,

Michael Brand <michael.ch.br...@gmail.com> writes:

>>    This prevent any link with a description to contain either "]]" or
>
> ... a single bracket at the border or a link destination part to
> contain "][" or "]]" or a single bracket at the border or ...

Correct.

>>    multiple spaces, but these requirements are so uncommon we probably
>>    shouldn't bother.
>
> I never had such links and don't bother. If I am right these could
> even be tweaked manually with %20, %5B and %5D to get working.

Not really, because Org would no longer un-escape the URI. This could
work for links opened with a browser, but not for other types (e.g.,
a target).

> Do I understand right that not escaping and unescaping would allow
>
> :   https://duckduckgo.com/?q=[dest]dest

This one is already possible, isn't it? Also, I suggest to change
brackets links, not plain links.

> : [[https://duckduckgo.com/?q=[dest]dest]]
> : [[https://duckduckgo.com/?q=[dest]dest][desc[desc]desc]]

Yes, those would become valid. The following regexp could be used as
a replacement for `org-bracket-link-regexp'

  "\\[\\[[^]+?\\(\\]\\[[^]]\\)?\\]\\]"

or, with groups,

  "\\[\\[\\([^]+?\\)\\(?:\\]\\[\\([^]+?\\)\\)?\\]\\]"


Regards,

-- 
Nicolas Goaziou

Reply via email to