From mboxrd@z Thu Jan 1 00:00:00 1970 From: "Berry, Charles" Subject: Re: Feature request: Allow export to convert broken links to plain text Date: Sun, 13 Jan 2019 17:50:57 +0000 Message-ID: <6DD23F17-400A-468E-B637-5E2A9C7995DD@ucsd.edu> References: Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable Return-path: Received: from eggs.gnu.org ([209.51.188.92]:47881) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1gijuY-0004Jz-NQ for emacs-orgmode@gnu.org; Sun, 13 Jan 2019 12:51:03 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1gijuX-0007ac-Tq for emacs-orgmode@gnu.org; Sun, 13 Jan 2019 12:51:02 -0500 Received: from iport-acv1-out.ucsd.edu ([132.239.0.176]:16816) by eggs.gnu.org with esmtps (TLS1.0:RSA_ARCFOUR_SHA1:16) (Exim 4.71) (envelope-from ) id 1gijuX-0007Zg-Bm for emacs-orgmode@gnu.org; Sun, 13 Jan 2019 12:51:01 -0500 In-Reply-To: Content-Language: en-US Content-ID: <05EFB53C2B7E3246BAFE08E35F75FD89@AD.UCSD.EDU> List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org Sender: "Emacs-orgmode" To: Ryan Thompson Cc: Org-Mode List > On Jan 12, 2019, at 12:38 PM, Ryan Thompson wrote: >=20 > Hi all, >=20 > I have a use case where I'd like for Org Mode to remove broken links whil= e preserving their text when exporting. In particular, I'm exporting the sa= me 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 no= t be present in every export. It would be much easier if such links could s= imply 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 ex= isting 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 stri= p the `BROKEN LINK:' part. HTH, Chuck