[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [O] Parsing property drawers in subtree scope exports
From: |
Nicolas Goaziou |
Subject: |
Re: [O] Parsing property drawers in subtree scope exports |
Date: |
Sat, 01 Jul 2017 09:48:50 +0200 |
User-agent: |
Gnus/5.13 (Gnus v5.13) Emacs/25.2 (gnu/linux) |
Hello,
Kaushal Modi <address@hidden> writes:
> I have this test Org file:
>
> =====
> * Title
> :PROPERTIES:
> :FOO: 123
> :END:
> Something
> =====
>
> I am working on an exporter back-end, and I need to get the value of the
> :FOO property
> - During *subtree* export (C-c C-e C-s ..)
> - In the body filter fn. So I have only info and body at my access.
>
> I looked at ox-html.el for hints but that didn't help. In there too, the
> CUSTOM_ID property drawer (picked one example I knew) is not parsed during
> subtreep export.
>
> How can I do this?
It depends.
You can write it :EXPORT_FOO: and define it in the back-end options.
Otherwise, you simply need to retrieve it and store it before calling
`org-export-to-file' or whatever.
Regards,
--
Nicolas Goaziou