From mboxrd@z Thu Jan 1 00:00:00 1970 From: stardiviner Subject: How about Org Mode invalid link handling strategy for exporting? Date: Wed, 02 Jan 2019 08:12:29 +0800 Message-ID: <87ftubdij6.fsf@gmail.com> Reply-To: numbchild@gmail.com Mime-Version: 1.0 Content-Type: text/plain Return-path: Received: from eggs.gnu.org ([208.118.235.92]:35213) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1geU7i-0000bx-Q0 for emacs-orgmode@gnu.org; Tue, 01 Jan 2019 19:11:03 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1geU7h-0006k8-Vq for emacs-orgmode@gnu.org; Tue, 01 Jan 2019 19:11:02 -0500 Received: from [61.175.244.13] (port=25998 helo=dark.localdomain) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1geU7h-0006jg-Gx for emacs-orgmode@gnu.org; Tue, 01 Jan 2019 19:11:01 -0500 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 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? -- [ stardiviner ] I try to make every word tell the meaning what I want to express. Blog: https://stardiviner.github.io/ IRC(freenode): stardiviner, Matrix: stardiviner GPG: F09F650D7D674819892591401B5DF1C95AE89AC3