From mboxrd@z Thu Jan 1 00:00:00 1970 From: Nicolas Goaziou Subject: Re: Display inline images for shortcuts links Date: Fri, 18 Aug 2017 12:27:50 +0200 Message-ID: <87o9rdmaqh.fsf@nicolasgoaziou.fr> References: <87shgqpa69.fsf@nicolasgoaziou.fr> Mime-Version: 1.0 Content-Type: text/plain Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:37647) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1dieVS-0005ub-Gt for emacs-orgmode@gnu.org; Fri, 18 Aug 2017 06:27:59 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1dieVN-0003fs-K4 for emacs-orgmode@gnu.org; Fri, 18 Aug 2017 06:27:58 -0400 Received: from relay4-d.mail.gandi.net ([217.70.183.196]:60965) by eggs.gnu.org with esmtps (TLS1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1dieVN-0003fM-D8 for emacs-orgmode@gnu.org; Fri, 18 Aug 2017 06:27:53 -0400 In-Reply-To: (Fabrice Popineau's message of "Fri, 18 Aug 2017 12:06:45 +0200") 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: Fabrice Popineau Cc: "emacs-orgmode@gnu.org" Hello, Fabrice Popineau writes: > While we are at it, would it be possible to display an inline image when > the image is in the contents part of the link? > > The rationale is that something like: > > [[file:book.pdf][file:cover.jpg]] > > is exported to html as: > > cover.jpg > > The result would be a clickable image in the Org buffer the same way it is > in HTML. > > Is there any drawback in doing this ? Yes there is. Org syntax doesn't support nested links. Most export back-ends do not either. I introduced `org-export-insert-image-links' a few ago to let other export back-ends have nested links. See its docstring for details. Display would not be on par with underlying syntax. I find this inconvenient. More inconvenient than not displaying the clickable image, that is. Regards, -- Nicolas Goaziou 0x80A93738