I currently begin to write a org-mode backend for a custom file format, so I can export from org-file to that format.
Therefore I need to apply properties (or attributes) to headings. My prolbem is now, how I could solve this.
I currently have the following headline function:
(defun org-mine-headline (headline contents info) (let ((full-text (substring-no-properties (org-export-data (org-element-property :title headline) info))) (p (org-element-property nil headline)) (a (org-export-read-attribute :attr_mine headline))) (format "%s: [%s] %s" full-text p contents)))
Which gives me with the following org file:
* H1 #+PROPERTY: findme a foo
the following output:
H1: [nil] foo
But I would like it to become something like that:
H1: [(:findme "a")] foo
I also tried attributes with no success:
* H1 #+ATTR_MINE: :findme a foo