From mboxrd@z Thu Jan 1 00:00:00 1970 From: Nicolas Goaziou Subject: Re: HTML width attribute gets added to a href instead of img Date: Sat, 07 Jan 2017 15:50:02 +0100 Message-ID: <87zij2ylet.fsf@nicolasgoaziou.fr> References: Mime-Version: 1.0 Content-Type: text/plain Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:49995) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1cPsJu-0004Qg-3w for emacs-orgmode@gnu.org; Sat, 07 Jan 2017 09:50:11 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1cPsJr-0005Ya-3Y for emacs-orgmode@gnu.org; Sat, 07 Jan 2017 09:50:10 -0500 Received: from relay4-d.mail.gandi.net ([217.70.183.196]:42842) by eggs.gnu.org with esmtps (TLS1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1cPsJq-0005W6-TU for emacs-orgmode@gnu.org; Sat, 07 Jan 2017 09:50:07 -0500 In-Reply-To: (Kaushal Modi's message of "Fri, 06 Jan 2017 17:19:33 +0000") 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: Kaushal Modi Cc: emacs-org list Hello, Kaushal Modi writes: > I believe that after this commit, the width attribute doesn't get added to > img tag as expected: > http://orgmode.org/cgit.cgi/org-mode.git/commit/?id=5ffb373a2ca6833617e344154c3dc1b877ec4784 > > Here is a MWE: > > ===== > Below works as expected > #+ATTR_HTML: :width 10px > [[http://orgmode.org/img/org-mode-unicorn-logo.png]] > > Below does not where the image is added as /link description/. > #+ATTR_HTML: :width 10px > [[http://orgmode.org][http://orgmode.org/img/org-mode-unicorn-logo.png]] > ===== > > Here is just the body of the exported html for brevity: > > ===== > >
>

> Below works as expected >

> >
>

alt="org-mode-unicorn-logo.png" width="10px" /> >

>
> >

> Below does not where the image is added as link description. >

> > >
>
> Exported using
Emacs 26.0.50.4 (Org mode 9.0.3)
by Kaushal.Modi. >
> > ===== > > Note that in the latter case, the width property gets added to 'a' tag > instead of to the 'img' tag. Fixed. Thank you. Regards, -- Nicolas Goaziou