emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
From: Fabrice Popineau <fabrice.popineau@gmail.com>
To: "emacs-orgmode@gnu.org" <emacs-orgmode@gnu.org>
Subject: New exporter, links with images
Date: Sat, 3 Nov 2012 19:16:15 +0100	[thread overview]
Message-ID: <CAFgFV9PmqUAsdmh+F2nTM3EWPeRZjknpiguFv-HdtQeuP2mJTQ@mail.gmail.com> (raw)

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

I want to insert a link like :

[[http://foo.org/bar][file:foo.jpg]]

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.

Greetings,

Fabrice

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

             reply	other threads:[~2012-11-03 18:16 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2012-11-03 18:16 Fabrice Popineau [this message]
2012-11-09  1:08 ` New exporter, links with images Nicolas Goaziou
2012-11-12 21:38   ` Fabrice Popineau

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

  List information: https://www.orgmode.org/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=CAFgFV9PmqUAsdmh+F2nTM3EWPeRZjknpiguFv-HdtQeuP2mJTQ@mail.gmail.com \
    --to=fabrice.popineau@gmail.com \
    --cc=emacs-orgmode@gnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

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