I'd like to specify a heading (using either link or agenda syntax) and export just that heading as a file, using elisp.
I'm not trying to do this - since this specifies the file to export to in the file itself: How to export top-level headings of org-mode buffer to separate files?
I think it might involve specific input to
org-export-as? (a function in