From mboxrd@z Thu Jan 1 00:00:00 1970 From: John Kitchin Subject: Re: How about Org Mode invalid link handling strategy for exporting? Date: Wed, 02 Jan 2019 09:34:51 -0500 Message-ID: References: <87ftubdij6.fsf@gmail.com> Mime-Version: 1.0 Content-Type: text/plain Return-path: Received: from eggs.gnu.org ([208.118.235.92]:56314) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1gehbm-0003tU-Sr for emacs-orgmode@gnu.org; Wed, 02 Jan 2019 09:35:00 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1gehbj-0003iA-Hb for emacs-orgmode@gnu.org; Wed, 02 Jan 2019 09:34:58 -0500 Received: from mail-qt1-x82e.google.com ([2607:f8b0:4864:20::82e]:39255) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1gehbj-0003hD-CJ for emacs-orgmode@gnu.org; Wed, 02 Jan 2019 09:34:55 -0500 Received: by mail-qt1-x82e.google.com with SMTP id u47so28974599qtj.6 for ; Wed, 02 Jan 2019 06:34:55 -0800 (PST) In-reply-to: <87ftubdij6.fsf@gmail.com> 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: numbchild@gmail.com Cc: org-mode Can you (setq org-export-with-broken-links t) to address some of these? It looks like (setq org-export-with-broken-links 'mark) will change them to [BROKEN LINK: path]. According to the docs: This option can also be set with the OPTIONS keyword, e.g., "broken-links:mark". stardiviner writes: > When I use package "ox-epub" to export current Org buffer to EPUB file, > it is based on "ox-html", I got some issues. One issue is about the > external file resource link which can't add into EPUB, or internal link > but invalid (I use narrow to subtree to debug Org buffer when using > ox-epub, so some internal links to other headlines will be invalid). > > I hope Org Mode can enhance this invalid link handling strategy to not > interrupt user exporting process. Just display warning to user. Or add > an option to controlled by user? > > Because I'm exporting a big Clojure language reference to EPUB, so > really hard to handling those invalid links. > > About the handling strategy, I have some ideas: > > - raise warning about invalid links no matter internal links or external > links. > > - don't interrupt process when meet invalid links. > > - keep link description part as link part. Replace the original link > part with an empty link. > > Do you any ideas? -- Professor John Kitchin Doherty Hall A207F Department of Chemical Engineering Carnegie Mellon University Pittsburgh, PA 15213 412-268-7803 @johnkitchin http://kitchingroup.cheme.cmu.edu