emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
* New exporter, links with images
@ 2012-11-03 18:16 Fabrice Popineau
  2012-11-09  1:08 ` Nicolas Goaziou
  0 siblings, 1 reply; 3+ messages in thread
From: Fabrice Popineau @ 2012-11-03 18:16 UTC (permalink / raw)
  To: emacs-orgmode

[-- Attachment #1: Type: text/plain, Size: 1018 bytes --]

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)
                (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.



[-- Attachment #2: Type: text/html, Size: 1399 bytes --]

^ permalink raw reply related	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2012-11-12 21:39 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2012-11-03 18:16 New exporter, links with images Fabrice Popineau
2012-11-09  1:08 ` Nicolas Goaziou
2012-11-12 21:38   ` Fabrice Popineau

Code repositories for project(s) associated with this public inbox


This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).