From mboxrd@z Thu Jan 1 00:00:00 1970 From: Ryan Thompson Subject: Feature request: Allow export to convert broken links to plain text Date: Sat, 12 Jan 2019 12:38:08 -0800 Message-ID: Mime-Version: 1.0 Content-Type: multipart/alternative; boundary="000000000000b9e7c4057f48cab7" Return-path: Received: from eggs.gnu.org ([209.51.188.92]:43777) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1giQ5s-00013g-5u for emacs-orgmode@gnu.org; Sat, 12 Jan 2019 15:41:24 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1giQ2v-00033g-Pq for emacs-orgmode@gnu.org; Sat, 12 Jan 2019 15:38:22 -0500 Received: from mail-ua1-x92c.google.com ([2607:f8b0:4864:20::92c]:36467) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1giQ2v-00030a-El for emacs-orgmode@gnu.org; Sat, 12 Jan 2019 15:38:21 -0500 Received: by mail-ua1-x92c.google.com with SMTP id j3so5872965uap.3 for ; Sat, 12 Jan 2019 12:38:20 -0800 (PST) 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 --000000000000b9e7c4057f48cab7 Content-Type: text/plain; charset="UTF-8" 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 --000000000000b9e7c4057f48cab7 Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable
Hi all,

I have a use cas= e where I'd like for=C2=A0Org Mode<= /span>=C2=A0to remove broken links while preserving their text when exporti= ng. In particular, I'm exporting the same file multiple times with diff= erent sets of headlines excluded each time, and as a result I have to be ca= reful 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 "mar= k" 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 wo= uld 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 arbitrar= y function.

Thanks,

Ryan = Thompson

--000000000000b9e7c4057f48cab7--