[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: |
Samuel W. Flint |
Subject: |
Re: [O] How to extract raw link and description from the "link" element? |
Date: |
Tue, 24 Feb 2015 15:28:16 -0600 |
User-agent: |
Gnus/5.130012 (Ma Gnus v0.12) Emacs/24.4 (gnu/linux) |
Marcin Borkowski <address@hidden> writes:
> 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!
You are welcome! Glad I could help!
Sam
--
Samuel W. Flint
address@hidden (402) 517-8468 <XMPP>
freenode: swflint
http://flintfam.org/~swflint
4096R/266596F4
(9477 D23E 389E 40C5 2F10 DE19 68E5 318E 2665 96F4)
"The most dangerous phrase in the language is, 'We've always done it
this way'." -- Grace Hopper