From mboxrd@z Thu Jan 1 00:00:00 1970 From: Ryan Thompson Subject: Re: Feature request: Allow export to convert broken links to plain text Date: Sat, 12 Jan 2019 12:42:43 -0800 Message-ID: References: Mime-Version: 1.0 Content-Type: multipart/alternative; boundary="0000000000001c8bad057f48db7e" Return-path: Received: from eggs.gnu.org ([209.51.188.92]:44596) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1giQ7Q-00027d-DI for emacs-orgmode@gnu.org; Sat, 12 Jan 2019 15:43:01 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1giQ7O-0000bN-Dc for emacs-orgmode@gnu.org; Sat, 12 Jan 2019 15:43:00 -0500 Received: from mail-vs1-xe30.google.com ([2607:f8b0:4864:20::e30]:44779) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1giQ7M-0000Xr-DQ for emacs-orgmode@gnu.org; Sat, 12 Jan 2019 15:42:58 -0500 Received: by mail-vs1-xe30.google.com with SMTP id u11so1856582vsp.11 for ; Sat, 12 Jan 2019 12:42:55 -0800 (PST) In-Reply-To: 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: Org-Mode List --0000000000001c8bad057f48db7e Content-Type: text/plain; charset="UTF-8" (Apologies for the double post of this email; due to a misconfiguration of my mailer, I believed my first email hadn't gone through until I remembered to check the archives.) On Sat, Jan 12, 2019 at 12:38 PM Ryan Thompson 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. Would the developers be willing to merge such a > feature if I wrote it? I would implement it by adding another possible > value to "org-export-with-broken-links", perhaps calling it something like > "unlink" or "strip" (suggestions for a better name welcome). Alternatively, > I could implement an option to dispatch broken link handling to an > arbitrary function. > > Thanks, > > Ryan Thompson > > --0000000000001c8bad057f48db7e Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable
(Apologies for the double post of this email; due to a mis= configuration of my mailer, I believed my first email hadn't gone throu= gh until I remembered to check the archives.)

On Sat, Jan 12, 2019 at 12:38 PM Ryan Thompson <= rct@thompsonclan.org> wrote:=
Hi all,

I have a use case where I'd like = for=C2=A0Org Mode= =C2=A0to remove broken links while preserving their text when export= ing. In particular, I'm exporting the same file multiple times with dif= ferent sets of headlines excluded each time, and as a result I have to be c= areful of linking to headlines that might not be present in every export. I= t would be much easier if such links could simply be converted back to plai= n 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 "ma= rk" but without adding any additional text around the link's text.= Would the developers be willing to merge such a feature if I wrote it? I w= ould implement it by adding another possible value to "org-export-with= -broken-links", perhaps calling it something like "unlink" o= r "strip" (suggestions for a better name welcome). Alternatively,= I could implement an option to dispatch broken link handling to an arbitra= ry function.

Thanks,

Ryan= Thompson

--0000000000001c8bad057f48db7e--