On Wed, Feb 4, 2015 at 10:15 AM, Sebastien Vauban <sva-n...@mygooglest.com> wrote: > > #+TITLE: ECM Links for HTML only > > * Test > > If I want to include a link (GPL logo, here) to the HTML export, I should put > it > in a block, right? > > #+begin_html > [[http://opensource.org/licenses/GPL-3.0][http://img.shields.io/:license-gpl-blue.svg]] > #+end_html > > Well, that does not work: the link is not rendered as a link; it's copied > "verbatim".
You need to write the link in html, not org: #+begin_html <a href="http://opensource.org/licenses/GPL-3.0"><img src="http://img.shields.io/:license-gpl-blue.svg" alt=":license-gpl-blue.svg" /></a> #+end_html > > > OTOH, the link on its own is correctly exported to HTML: > > [[http://opensource.org/licenses/GPL-3.0][http://img.shields.io/:license-gpl-blue.svg]] > > ... but it fails to be exported to LaTeX (causing a "TeX capacity exceeded" > error), reason why I must not have the link when exporting to LaTeX. I can't replicate that, for me it exports to \href{http://opensource.org/licenses/GPL-3.0}{\url{http://img.shields.io/:license-gpl-blue.svg}} and compiles just fine. > > Is this a bug? Is there an alternative? > > Best regards, > Seb > > -- > Sebastien Vauban > >