* Pulling LINK and DESCRIPTION out of an org link
@ 2024-08-30 21:02 Christopher Howard
2024-09-03 23:43 ` Rudolf Adamkovič
0 siblings, 1 reply; 2+ messages in thread
From: Christopher Howard @ 2024-08-30 21:02 UTC (permalink / raw)
To: Help Gnu Emacs Mailing List
Hi, as part of a little convenience function I was coding for person use, I needed to be able to pull the LINK and DESCRIPTION (if it exists) out of org link strings. It seems like there must be a simple built-in way to do this. I found org-element-link-parser which seemed like just what I needed, but it apparently does not store the DESCRIPTION in the returned link object.
I suppose I could use a regular expression match, but I'm not sure how I would deal with the possibility of escaped "]" and "[" characters inside the LINK or DESCRIPTION.
--
📛 Christopher Howard
🚀 gemini://gem.librehacker.com
🌐 http://gem.librehacker.com
בראשית ברא אלהים את השמים ואת הארץ
^ permalink raw reply [flat|nested] 2+ messages in thread
* Re: Pulling LINK and DESCRIPTION out of an org link
2024-08-30 21:02 Pulling LINK and DESCRIPTION out of an org link Christopher Howard
@ 2024-09-03 23:43 ` Rudolf Adamkovič
0 siblings, 0 replies; 2+ messages in thread
From: Rudolf Adamkovič @ 2024-09-03 23:43 UTC (permalink / raw)
To: Christopher Howard, Help Gnu Emacs Mailing List
Christopher Howard <christopher@librehacker.com> writes:
> ... I needed to be able to pull the LINK and DESCRIPTION (if it
> exists) out of org link strings.
This would be better asked on the Org mailing list:
https://orgmode.org/worg/org-mailing-list.html
Rudy
--
"Mathematics takes us still further from what is human into the region
of absolute necessity, to which not only the actual world, but every
possible world, must conform."
--- Bertrand Russell, 1902
Rudolf Adamkovič <rudolf@adamkovic.org> [he/him]
http://adamkovic.org
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2024-09-03 23:43 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2024-08-30 21:02 Pulling LINK and DESCRIPTION out of an org link Christopher Howard
2024-09-03 23:43 ` Rudolf Adamkovič
Code repositories for project(s) associated with this external index
https://git.savannah.gnu.org/cgit/emacs.git
https://git.savannah.gnu.org/cgit/emacs/org-mode.git
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.