|
From: | Kaushal Modi |
Subject: | Re: [O] HTML width attribute gets added to a href instead of img |
Date: | Sat, 07 Jan 2017 15:17:58 +0000 |
Thank you!
Hello,
Kaushal Modi <address@hidden> 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:
>
> =====
> <body>
> <div id="content">
> <p>
> Below works as expected
> </p>
>
> <div class="figure">
> <p><img src="" href="http://orgmode.org/img/org-mode-unicorn-logo.png" rel="noreferrer" class="gmail_msg" target="_blank">http://orgmode.org/img/org-mode-unicorn-logo.png"
> alt="org-mode-unicorn-logo.png" width="10px" />
> </p>
> </div>
>
> <p>
> Below does not where the image is added as <i>link description</i>.
> </p>
>
> <div class="figure">
> <p><a href="" href="http://orgmode.org" rel="noreferrer" class="gmail_msg" target="_blank">http://orgmode.org" width="10px"><img src="" class="gmail_msg"> > http://orgmode.org/img/org-mode-unicorn-logo.png"
> alt="org-mode-unicorn-logo.png" /></a>
> </p>
> </div>
> </div>
> <div id="postamble" class="status">
> Exported using <div style="display: inline" class="creator"><a href="" class="gmail_msg"> > http://www.gnu.org/software/emacs/">Emacs</a> 26.0.50.4 (<a href="" class="gmail_msg"> > http://orgmode.org">Org</a> mode 9.0.3)</div> by Kaushal.Modi.
> </div>
> </body>
> =====
>
> 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
Kaushal Modi
[Prev in Thread] | Current Thread | [Next in Thread] |