From mboxrd@z Thu Jan 1 00:00:00 1970 From: Kodi Arfer Subject: Re: Standalone hyperlinked images in HTML export Date: Mon, 01 Jul 2013 17:26:05 -0400 Message-ID: <51D1F3ED.6080606@arfer.net> References: <51D08FF7.3020002@arfer.net> <87hageq9j9.fsf@gmail.com> Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:33552) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Utlbw-0002wJ-N2 for emacs-orgmode@gnu.org; Mon, 01 Jul 2013 17:26:17 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Utlbr-0002Ta-KJ for emacs-orgmode@gnu.org; Mon, 01 Jul 2013 17:26:12 -0400 Received: from mxout-08.mxes.net ([216.86.168.183]:56788) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Utlbr-0002R5-F0 for emacs-orgmode@gnu.org; Mon, 01 Jul 2013 17:26:07 -0400 In-Reply-To: <87hageq9j9.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-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org To: Nicolas Goaziou Cc: emacs-orgmode@gnu.org On 2013 Jul 01 Mon 5:01:46 PM -0400, Nicolas Goaziou wrote: > Hello, > > Kodi Arfer writes: > >> The manual explains in "Images in HTML export" that you can make an >> image a hyperlink like this: >> >> [[file:highres.jpg][file:thumb.jpg]] >> >> where thumb.jpg becomes the 'src' and highres.jpg becomes the >> 'href'. One might infer it should also be possible to link to something >> other than an image, like this: >> >> [[http://gnu.org][http://example.com/gnu-head.jpg]] >> >> For example, try exporting this file: >> >> #+begin_src org >> Some initial text. >> >> [[http://example.com/a.png]] >> >> Some text between images 1 and 2. >> >> [[http://eeyup.com][http://example.com/b.png]] >> >> Some text between images 2 and 3. >> >> http://example.com/c.png >> >> Some trailing text. >> #+end_src >> >> You do indeed get >> >> > alt="b.png" /> >> >> in the output, but the exporter doesn't regard the image as standalone, >> so it doesn't get put in a
(or, in HTML5 mode,
) like the >> others, and if you add a #+CAPTION, no caption will be included. > > Indeed. Would you mind testing the following patch against master? It > should fix the issues. I tried it with captions, :html5-fancy, and paths to images as well as path to non-images. All looks good. You're awesome. I see your patch also affects math export somehow, but I haven't tested that.