Hello,

Fabrice Popineau <fabrice.popin...@gmail.com> 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:
>
> <a href="book.pdf"><img src="cover.jpg" alt="cover.jpg" /></a>
>
> 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

Reply via email to