On 23/10/2023 19:09, Ihor Radchenko wrote: >>>>>> + (if (string-match-p "\\`\u200b*\\[.*\\]\u200b*\\'" anchor) >>>>>> + anchor >>>>>> + (format "[%s]" anchor)) > > I did not mean unrelated to ox-ascii. I meant unrelated to "add new > feature allowing more flexibility for :export property of links when > exporting to ASCII". Since "ox-ascii.el: Consistently add brackets around links" has been committed, this regexp is not necessary to preserve inconsistencies in link formatting. Avoiding duplication of brackets was just a bonus. See next version of the draft. Functions are still not documented. `cons' is made an implementation detail, however completely opaque structure is an obstacle for derived export backend. Perhaps getter functions should be introduced as well.