Max Nikulin <maniku...@gmail.com> writes: > On 08/11/2023 18:16, Ihor Radchenko wrote: >> We can introduce a special ox-ascii-specific object `object-with-note' >> that will be exported by ox-ascii according to >> `org-ascii-links-to-notes' settings. Then, we can transform link objects >> into `object-with-note' that will later be used in >> `org-ascii--describe-links'. > > I am in doubts if it is a bright idea to transform in place passed link > object inside `org-ascii-link'.
> I see 2 ways: > - Use ad-hoc object-with-note org-element object instead of `cons' in my > patch (rather cosmetic change). > - Introduce :filter property for links that is called before export > pass. These functions may return arbitrary elements instead of original > links. For ox-ascii a dedicated transcoder for object-with-note is > added. Only custom link types having :export property are processed by > `org-ascii-link'. By "transform", I meant return `object-with-note'. Basically, the second item in your list. -- 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>