emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
* exporter: How to get :file property on a src block in an exporter
@ 2021-12-21 21:26 Yasushi SHOJI
  2021-12-22 14:34 ` Ihor Radchenko
  0 siblings, 1 reply; 7+ messages in thread
From: Yasushi SHOJI @ 2021-12-21 21:26 UTC (permalink / raw)
  To: emacs-org list

Hi,

I'm writing an exporter and I'd like to get :file property on a src block.
Let's say I have the following src block in an org file.

#+BEGIN_SRC ditaa :file images/hello-world.png :exports code
+--------------+
| Hello World! |
+--------------+
#+END_SRC"

And, say, I'm writing a function for my exporter:

(defun org-myexporter-src-block (src-block contents info)
    (let ((file (xxxxxxx yyy)))))

How can I get "images/hello-world.png" in org-myexporter-src-block?

Thanks,
-- 
            yashi


^ permalink raw reply	[flat|nested] 7+ messages in thread

end of thread, other threads:[~2021-12-23  2:29 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2021-12-21 21:26 exporter: How to get :file property on a src block in an exporter Yasushi SHOJI
2021-12-22 14:34 ` Ihor Radchenko
2021-12-22 15:52   ` Yasushi SHOJI
2021-12-22 16:07     ` Yasushi SHOJI
2021-12-22 18:22       ` Berry, Charles
2021-12-22 22:16         ` Yasushi SHOJI
2021-12-23  2:28           ` Berry, Charles

Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).