[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: |
Ihor Radchenko |
Subject: |
Re: [RFC][PATCH v2] Allow to export to ascii custom link types as notes |
Date: |
Sat, 11 Nov 2023 11:17:54 +0000 |
Max Nikulin <manikulin@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>
- Re: [RFC][PATCH v2] Allow to export to ascii custom link types as notes, Ihor Radchenko, 2023/11/07
- Re: [RFC][PATCH v2] Allow to export to ascii custom link types as notes, Max Nikulin, 2023/11/07
- Re: [RFC][PATCH v2] Allow to export to ascii custom link types as notes, Ihor Radchenko, 2023/11/07
- Re: [RFC][PATCH v2] Allow to export to ascii custom link types as notes, Max Nikulin, 2023/11/08
- Re: [RFC][PATCH v2] Allow to export to ascii custom link types as notes, Ihor Radchenko, 2023/11/08
- Re: [RFC][PATCH v2] Allow to export to ascii custom link types as notes, Max Nikulin, 2023/11/08
- Re: [RFC][PATCH v2] Allow to export to ascii custom link types as notes, Ihor Radchenko, 2023/11/08
- Re: [RFC][PATCH v2] Allow to export to ascii custom link types as notes, Max Nikulin, 2023/11/09
- Re: [RFC][PATCH v2] Allow to export to ascii custom link types as notes,
Ihor Radchenko <=