emacs-orgmode
[Top][All Lists]
Advanced

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

Re: [O] How to extract raw link and description from the "link" element?


From: Marcin Borkowski
Subject: Re: [O] How to extract raw link and description from the "link" element?
Date: Tue, 24 Feb 2015 22:24:30 +0100

On 2015-02-24, at 21:50, Samuel W. Flint <address@hidden> wrote:

> Marcin Borkowski <address@hidden> writes:
>
>> Hi all,
>>
>> so I have this:
>>
>> [[file:whatever.org][Some link]]
>>
>> How do I extract bith parts of this link programmatically?
>>
>> My use case is that I have an Org tree of links, and I want to export
>> them to certain XML format.
>>
>> TIA,
>
> Have you considered a custom exporter?  Just a little thought.

That's exactly what I'm writing.  It just hadn't occured to me to use
the parsed version in the element tree – I just concentrated on
exporting the headlines (which contain the links).  Stupid me.  Thanks
for this (obvious) tip!

> Sam

Best,

-- 
Marcin Borkowski
http://octd.wmi.amu.edu.pl/en/Marcin_Borkowski
Faculty of Mathematics and Computer Science
Adam Mickiewicz University



reply via email to

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