With org-export-define-backend
, I want to make quote-block
get current headline's properties.
For example, define a function org-my-headline(headline contents info)
for exporting headline
, I can get the values within :PROPERTIES: ... :END:
in org-my-headline
like this:
(defun org-my-headline (headline contents info)
...
(org-element-property :PROPERTY_NAME headline)
...
)
Now I want to define a function org-my-quote-block(quote-block contents info)
for exporting quote-block
, and its behavior can be changed by current headline's property (e.g. :QUOTE_BLOCK: hide
), can this task be done?
Or another way: is #+BEGIN_QUOTE
able to get the options in title like #+BEGIN_SRC python
can get the value python
via (org-element-property :language src-block)
?
(update: the second way should be impossible...just tried org-element-parse-buffer
, and found it will ignore all options strings in #+BEGIN_QUOTE
)