On 2014-03-18 11:46, William Denton wrote:
I would like to use an image as an anchor in an HTML export
(specifically in a reveal.js export---I really like this). I can't
figure out how to make it work, and just end up with either a link
with a missing image or an image with no link. I don't see this
documented. Is it possible?
What I want to end up with in the output is something like:
<a href="foo.html"><img src="./images/foo.jpg"></a>
#+BEGIN_SRC org
,* Test image link
[[http://example.com][file:image1.png]]
#+END_SRC
which generates (with subtree export):
#+BEGIN_SRC html
<!DOCTYPE html>
<html xmlns="http://www.w3.org/1999/xhtml" lang="en" xml:lang="en">
<head>
<title>Test image link</title>
<meta charset="utf-8" />
<meta name="generator" content="Org-mode" />
<meta name="author" content="Rick Frankel" />
<link rel="stylesheet" href="org.css" />
</head>
<body>
<div id="content">
<h1 class="title">Test image link</h1>
<div class="figure">
<p><a href="http://example.com"><img src="image1.png" alt="image1.png"
/></a>
</p>
</div>
</div>
</body>
</html>
#+END_SRC