Re: [Q] How to programmatically get the description of a link?

2021-08-13 Thread John Kitchin
I think you can do something like this: (defun get-description () (interactive) (let ((link (org-element-context))) (message (buffer-substring (org-element-property :contents-begin link) (org-element-property :contents-end link) John --- Professo

[Q] How to programmatically get the description of a link?

2021-08-13 Thread Rodrigo Morales
* The question Let's say I have the following link #+BEGIN_SRC org This is a sentence [[foo][bar]]. This is another sentence. #+END_SRC How to programmatically get the description of the link (i.e. =bar=)? * Additional information I've tried using =org-element-context=. The following sexp wa