In the following org document, org-element-map only finds one link, but
the buffer acts like there are two links. The free link is found, but
the link label buried in the caption is not found. However, it exports
correctly, and the caption link is clickable, so the buffer certainly
thinks it is a link. Is this expected behavior?

* test links

#+caption: some text label:test
| a | b |
| 1 | 3 |

label:test2

#+BEGIN_SRC emacs-lisp
(org-element-map (org-element-parse-buffer) 'link
      (lambda (link)
   (org-element-property :path link)))
#+END_SRC
#+RESULTS:
| test2 |



--
Professor John Kitchin
Doherty Hall A207F
Department of Chemical Engineering
Carnegie Mellon University
Pittsburgh, PA 15213
412-268-7803
@johnkitchin
http://kitchingroup.cheme.cmu.edu

Reply via email to