public inbox archive for pandoc-discuss@googlegroups.com
 help / color / mirror / Atom feed
* reveal.js image vs figure
@ 2018-03-16 15:46 John Muccigrosso
       [not found] ` <4c0b920a-957b-4dcd-b444-78f39b58617f-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org>
  0 siblings, 1 reply; 4+ messages in thread
From: John Muccigrosso @ 2018-03-16 15:46 UTC (permalink / raw)
  To: pandoc-discuss


[-- Attachment #1.1: Type: text/plain, Size: 1110 bytes --]

I'm messing around with reveal.js css, trying to get it to show images as 
large as possible, and I notice that when converting from markdown, if an 
image has a "caption", it shows up as a figure in the reveal.js html, but 
otherwise it shows up as just an image in p tags.

Specifically:

1. ![Caption](image url) turns into:

<figure>
<img data-src="/path/to/image" alt="Caption" /><figcaption>Caption
</figcaption>
</figure>


2. ![](image url) turns into:

<p>
<img data-src="/path/to/image" />
</p>

What's the logic here?

Thanks.

-- 
You received this message because you are subscribed to the Google Groups "pandoc-discuss" group.
To unsubscribe from this group and stop receiving emails from it, send an email to pandoc-discuss+unsubscribe-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org
To post to this group, send email to pandoc-discuss-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org
To view this discussion on the web visit https://groups.google.com/d/msgid/pandoc-discuss/4c0b920a-957b-4dcd-b444-78f39b58617f%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

[-- Attachment #1.2: Type: text/html, Size: 3930 bytes --]

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

* Re: reveal.js image vs figure
       [not found] ` <4c0b920a-957b-4dcd-b444-78f39b58617f-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org>
@ 2018-03-16 17:48   ` John Muccigrosso
       [not found]     ` <ca256c0b-051d-493e-b57c-84db97da4a8f-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org>
  2019-04-12 23:40   ` jmuccigr-Re5JQEeQqe8AvxtiuMwx3w
  1 sibling, 1 reply; 4+ messages in thread
From: John Muccigrosso @ 2018-03-16 17:48 UTC (permalink / raw)
  To: pandoc-discuss


[-- Attachment #1.1: Type: text/plain, Size: 1139 bytes --]

@JGM reminds me that this was in a recent changelog (2.0):

Require nonempty alt text for implicit_figures (#2844 
> <https://github.com/jgm/pandoc/issues/2844>). A figure with an empty 
> caption doesn’t make sense.


However you can force a figure by including a title in the image link:

![](image url "fig: test")

The img will be inside figure tabs instead of p tags and will look like 
this:

<img data-src="/path/to/image.jpg" title=" test" />

This should eliminate any potential issues with reveal.js CSS treating it 
differently.

-- 
You received this message because you are subscribed to the Google Groups "pandoc-discuss" group.
To unsubscribe from this group and stop receiving emails from it, send an email to pandoc-discuss+unsubscribe-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org
To post to this group, send email to pandoc-discuss-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org
To view this discussion on the web visit https://groups.google.com/d/msgid/pandoc-discuss/ca256c0b-051d-493e-b57c-84db97da4a8f%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

[-- Attachment #1.2: Type: text/html, Size: 3221 bytes --]

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

* Re: reveal.js image vs figure
       [not found]     ` <ca256c0b-051d-493e-b57c-84db97da4a8f-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org>
@ 2019-04-09 17:41       ` pbeltran
  0 siblings, 0 replies; 4+ messages in thread
From: pbeltran @ 2019-04-09 17:41 UTC (permalink / raw)
  To: pandoc-discuss


[-- Attachment #1.1: Type: text/plain, Size: 1415 bytes --]

I'm having the same issue. This solves the problem with reveal.js. But when 
producing beamer from the same source, en empty caption appears.... weird.


El viernes, 16 de marzo de 2018, 18:48:08 (UTC+1), John Muccigrosso 
escribió:
>
> @JGM reminds me that this was in a recent changelog (2.0):
>
> Require nonempty alt text for implicit_figures (#2844 
>> <https://github.com/jgm/pandoc/issues/2844>). A figure with an empty 
>> caption doesn’t make sense.
>
>
> However you can force a figure by including a title in the image link:
>
> ![](image url "fig: test")
>
> The img will be inside figure tabs instead of p tags and will look like 
> this:
>
> <img data-src="/path/to/image.jpg" title=" test" />
>
> This should eliminate any potential issues with reveal.js CSS treating it 
> differently.
>
>

-- 
You received this message because you are subscribed to the Google Groups "pandoc-discuss" group.
To unsubscribe from this group and stop receiving emails from it, send an email to pandoc-discuss+unsubscribe-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org
To post to this group, send email to pandoc-discuss-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org
To view this discussion on the web visit https://groups.google.com/d/msgid/pandoc-discuss/23812826-67e0-4435-b301-3e65fc034439%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

[-- Attachment #1.2: Type: text/html, Size: 3459 bytes --]

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

* Re: reveal.js image vs figure
       [not found] ` <4c0b920a-957b-4dcd-b444-78f39b58617f-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org>
  2018-03-16 17:48   ` John Muccigrosso
@ 2019-04-12 23:40   ` jmuccigr-Re5JQEeQqe8AvxtiuMwx3w
  1 sibling, 0 replies; 4+ messages in thread
From: jmuccigr-Re5JQEeQqe8AvxtiuMwx3w @ 2019-04-12 23:40 UTC (permalink / raw)
  To: pandoc-discuss


[-- Attachment #1.1: Type: text/plain, Size: 722 bytes --]

Not an answer, but getting reveal.js to show images as large as possible is 
a bit of a bear.  You can find a few threads on the reveal GitHub pages.

-- 
You received this message because you are subscribed to the Google Groups "pandoc-discuss" group.
To unsubscribe from this group and stop receiving emails from it, send an email to pandoc-discuss+unsubscribe-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org
To post to this group, send email to pandoc-discuss-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org
To view this discussion on the web visit https://groups.google.com/d/msgid/pandoc-discuss/28b9aad2-fc8b-43c7-b5f6-19b6e7b0e6bc%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

[-- Attachment #1.2: Type: text/html, Size: 1134 bytes --]

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

end of thread, other threads:[~2019-04-12 23:40 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2018-03-16 15:46 reveal.js image vs figure John Muccigrosso
     [not found] ` <4c0b920a-957b-4dcd-b444-78f39b58617f-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org>
2018-03-16 17:48   ` John Muccigrosso
     [not found]     ` <ca256c0b-051d-493e-b57c-84db97da4a8f-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org>
2019-04-09 17:41       ` pbeltran
2019-04-12 23:40   ` jmuccigr-Re5JQEeQqe8AvxtiuMwx3w

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 NNTP newsgroup(s).