* 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
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č
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).