emacs-orgmode
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [RFC][PATCH v2] Allow to export to ascii custom link types as notes


From: Max Nikulin
Subject: Re: [RFC][PATCH v2] Allow to export to ascii custom link types as notes
Date: Thu, 9 Nov 2023 18:12:39 +0700
User-agent: Mozilla Thunderbird

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'.




reply via email to

[Prev in Thread] Current Thread [Next in Thread]