[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[O] New exporter, links with images

From: Fabrice Popineau
Subject: [O] New exporter, links with images
Date: Sat, 3 Nov 2012 19:16:15 +0100

I want to insert a link like :


and export it to html. I assume that it should result in a clickable image. Unfortunately, some assertion fails by doing this.
If I remove the assertion :

diff --git a/contrib/lisp/org-e-html.el b/contrib/lisp/org-e-html.el
index 9afe4a8..1675bdc 100644
--- a/contrib/lisp/org-e-html.el
+++ b/contrib/lisp/org-e-html.el
@@ -2110,7 +2110,7 @@ standalone images, do the following.
                                (org-export-get-parent element)))
                     (t nil))))
     (when paragraph
-      (assert (eq (org-element-type paragraph) 'paragraph))
+      ; (assert (eq (org-element-type paragraph) 'paragraph))
       (when (or (not (and (boundp 'org-e-html-standalone-image-predicate)
                          (functionp org-e-html-standalone-image-predicate)))
                (funcall org-e-html-standalone-image-predicate paragraph))

I get a result but I'm afraid there are a couple of spurious <p></p> tags.



reply via email to

[Prev in Thread] Current Thread [Next in Thread]