* 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 :
[[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 --]
^ permalink raw reply related [flat|nested] 3+ messages in thread
* Re: New exporter, links with images
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
0 siblings, 1 reply; 3+ messages in thread
From: Nicolas Goaziou @ 2012-11-09 1:08 UTC (permalink / raw)
To: Fabrice Popineau; +Cc: emacs-orgmode
Hello,
Fabrice Popineau <fabrice.popineau@gmail.com> writes:
> 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.
Thank you for reporting this.
I think it should be fixed now in master. Could you try again and
confirm it?
Regards,
--
Nicolas Goaziou
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: New exporter, links with images
2012-11-09 1:08 ` Nicolas Goaziou
@ 2012-11-12 21:38 ` Fabrice Popineau
0 siblings, 0 replies; 3+ messages in thread
From: Fabrice Popineau @ 2012-11-12 21:38 UTC (permalink / raw)
To: Nicolas Goaziou; +Cc: emacs-orgmode
[-- Attachment #1: Type: text/plain, Size: 542 bytes --]
Yes, it is ok.
Thanks again,
Fabrice
2012/11/9 Nicolas Goaziou <n.goaziou@gmail.com>
> Hello,
>
> Fabrice Popineau <fabrice.popineau@gmail.com> writes:
>
> > 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.
>
> Thank you for reporting this.
>
>
> I think it should be fixed now in master. Could you try again and
> confirm it?
>
>
> Regards,
>
> --
> Nicolas Goaziou
>
[-- Attachment #2: Type: text/html, Size: 1154 bytes --]
^ permalink raw reply [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
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).