help-gnu-emacs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Pulling LINK and DESCRIPTION out of an org link


From: Christopher Howard
Subject: Pulling LINK and DESCRIPTION out of an org link
Date: Fri, 30 Aug 2024 13:02:30 -0800

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

讘专讗砖讬转 讘专讗 讗诇讛讬诐 讗转 讛砖诪讬诐 讜讗转 讛讗专抓



reply via email to

[Prev in Thread] Current Thread [Next in Thread]