|
From: | Ryan Thompson |
Subject: | Re: [O] Feature request: Allow export to convert broken links to plain text |
Date: | Sun, 13 Jan 2019 13:33:47 -0800 |
> On Jan 12, 2019, at 12:38 PM, Ryan Thompson <address@hidden> wrote:
>
> Hi all,
>
> I have a use case where I'd like for Org Mode to remove broken links while preserving their text when exporting. In particular, I'm exporting the same file multiple times with different sets of headlines excluded each time, and as a result I have to be careful of linking to headlines that might not be present in every export. It would be much easier if such links could simply be converted back to plain text for that export, while remaining as a link for any exports that *do* include the target headline. None of the existing settings do quite what I want. The "mark" option comes closest.
> I basically want "mark" but without adding any additional text around the link's text.
Sounds like a good use case for a filter. See
(info "(org) Advanced Export Configuration")
and scroll down to the `Filters' section.
Just use the `broken-links:mark' option and set up your link filter to strip the `BROKEN LINK:' part.
HTH,
Chuck
[Prev in Thread] | Current Thread | [Next in Thread] |