* reveal-is question about consecutive headings
@ 2016-03-25 20:10 John Muccigrosso
[not found] ` <854d59af-a6da-4abb-9028-51b435715d5e-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org>
0 siblings, 1 reply; 5+ messages in thread
From: John Muccigrosso @ 2016-03-25 20:10 UTC (permalink / raw)
To: pandoc-discuss
[-- Attachment #1.1: Type: text/plain, Size: 2450 bytes --]
I've just started using reveal.js to do some slideshows and I've noticed
that it doesn't always do what I expect when there are headings without
intervening text. I often have this as I'm working something up. For
example, this text:
# Minimal test
## Level 2
text
### Level 3
Here's the text.
yields the following expected html:
<section><section id="minimal-test" class="titleslide slide level1"><h1>Minimal
test</h1></section><section id="level-2" class="slide level2">
<h1>Level 2</h1>
<p>text</p>
<h3 id="level-3">Level 3</h3>
<p>Here's the text.</p>
</section></section>
But when I remove the intervening text between the two lower-level headings:
# Minimal test
## Level 2
### Level 3
Here's the text.
I get this:
<section><section id="minimal-test" class="titleslide slide level1"><h1>Minimal
test</h1></section><section><section id="level-2" class="titleslide slide
level2"><h1>Level 2</h1></section><section id="level-3" class="slide level3"
>
<h1>Level 3</h1>
<p>Here's the text.</p>
</section></section></section>
If I understand this correctly, the intended level-3 heading got turned
into a level-1 heading because the slide level is 3 and that level heading
always gets h1 in the html. (That h1 is also bigger than the h1 for the
"Level 2" text, but that's the css…even if I don't understand why.)
If I add another slide in which the level-2 heading is followed by text,
thus making the slide level 2, then pandoc recognizes that the slide level
is 2 and the level-3 heading is a smaller h3 again, as expected. But if I
just add "slide-level=3" in the simpler example, nothing changes. I'd have
expected that to look like it does when I add the second slide which makes
the slide-level 2.
Am I missing something? Is this maybe too unrealistic a case to worry about?
--
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/854d59af-a6da-4abb-9028-51b435715d5e%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
[-- Attachment #1.2: Type: text/html, Size: 10777 bytes --]
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: reveal-is question about consecutive headings
[not found] ` <854d59af-a6da-4abb-9028-51b435715d5e-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org>
@ 2016-03-25 20:30 ` John MACFARLANE
[not found] ` <20160325203028.GE524-nFAEphtLEs/fysO+viCLMa55KtNWUUjk@public.gmane.org>
0 siblings, 1 reply; 5+ messages in thread
From: John MACFARLANE @ 2016-03-25 20:30 UTC (permalink / raw)
To: pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw
+++ John Muccigrosso [Mar 25 16 13:10 ]:
> I've just started using reveal.js to do some slideshows and I've
> noticed that it doesn't always do what I expect when there are headings
> without intervening text. I often have this as I'm working something
> up. For example, this text:
> # Minimal test
> ## Level 2
> text
> ### Level 3
> Here's the text.
> yields the following expected html:
> <section><section id="minimal-test" class="titleslide slide
> level1"><h1>Minimal test</h1></section><section id="level-2"
> class="slide level2">
> <h1>Level 2</h1>
> <p>text</p>
> <h3 id="level-3">Level 3</h3>
> <p>Here's the text.</p>
> </section></section>
> But when I remove the intervening text between the two lower-level
> headings:
> # Minimal test
> ## Level 2
> ### Level 3
> Here's the text.
> I get this:
> <section><section id="minimal-test" class="titleslide slide
> level1"><h1>Minimal test</h1></section><section><section id="level-2"
> class="titleslide slide level2"><h1>Level 2</h1></section><section
> id="level-3" class="slide level3">
> <h1>Level 3</h1>
> <p>Here's the text.</p>
> </section></section></section>
> If I understand this correctly, the intended level-3 heading got turned
> into a level-1 heading because the slide level is 3 and that level
> heading always gets h1 in the html. (That h1 is also bigger than the h1
> for the "Level 2" text, but that's the css…even if I don't understand
> why.)
> If I add another slide in which the level-2 heading is followed by
> text, thus making the slide level 2, then pandoc recognizes that the
> slide level is 2 and the level-3 heading is a smaller h3 again, as
> expected. But if I just add "slide-level=3" in the simpler example,
> nothing changes. I'd have expected that to look like it does when I add
> the second slide which makes the slide-level 2.
> Am I missing something? Is this maybe too unrealistic a case to worry
> about?
I think you're understanding things okay. Note that the
slide level affects how the content gets chopped up into
slides. Adding a class "slide level3" to a header won't
affect how the content is divided into slides.
--
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/20160325203028.GE524%40protagoras.berkeley.edu.
For more options, visit https://groups.google.com/d/optout.
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: reveal-is question about consecutive headings
[not found] ` <20160325203028.GE524-nFAEphtLEs/fysO+viCLMa55KtNWUUjk@public.gmane.org>
@ 2016-03-26 4:06 ` John Muccigrosso
[not found] ` <a824a5b6-0e87-4067-8d9d-067fc46caf1c-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org>
0 siblings, 1 reply; 5+ messages in thread
From: John Muccigrosso @ 2016-03-26 4:06 UTC (permalink / raw)
To: pandoc-discuss
[-- Attachment #1.1: Type: text/plain, Size: 1042 bytes --]
On Friday, March 25, 2016 at 4:30:42 PM UTC-4, John MacFarlane wrote:
>
> I think you're understanding things okay. Note that the
> slide level affects how the content gets chopped up into
> slides. Adding a class "slide level3" to a header won't
> affect how the content is divided into slides.
>
What I did was add the slide-level option to pandoc as "-V slide-level=3",
thinking that that would have the effect I needed, but instead it seemed to
do nothing.
--
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/a824a5b6-0e87-4067-8d9d-067fc46caf1c%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
[-- Attachment #1.2: Type: text/html, Size: 1639 bytes --]
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: reveal-is question about consecutive headings
[not found] ` <a824a5b6-0e87-4067-8d9d-067fc46caf1c-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org>
@ 2016-03-26 5:16 ` John MACFARLANE
[not found] ` <20160326051649.GE3528-nFAEphtLEs/fysO+viCLMa55KtNWUUjk@public.gmane.org>
0 siblings, 1 reply; 5+ messages in thread
From: John MACFARLANE @ 2016-03-26 5:16 UTC (permalink / raw)
To: pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw
+++ John Muccigrosso [Mar 25 16 21:06 ]:
> On Friday, March 25, 2016 at 4:30:42 PM UTC-4, John MacFarlane wrote:
>
> I think you're understanding things okay. Note that the
> slide level affects how the content gets chopped up into
> slides. Adding a class "slide level3" to a header won't
> affect how the content is divided into slides.
>
> What I did was add the slide-level option to pandoc as "-V
> slide-level=3", thinking that that would have the effect I needed, but
> instead it seemed to do nothing.
There is a command line option: --slide-level=3
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: reveal-is question about consecutive headings
[not found] ` <20160326051649.GE3528-nFAEphtLEs/fysO+viCLMa55KtNWUUjk@public.gmane.org>
@ 2016-03-26 14:53 ` John Muccigrosso
0 siblings, 0 replies; 5+ messages in thread
From: John Muccigrosso @ 2016-03-26 14:53 UTC (permalink / raw)
To: pandoc-discuss
[-- Attachment #1.1: Type: text/plain, Size: 1358 bytes --]
On Saturday, March 26, 2016 at 1:17:04 AM UTC-4, John MacFarlane wrote:
>
> +++ John Muccigrosso [Mar 25 16 21:06 ]:
> > On Friday, March 25, 2016 at 4:30:42 PM UTC-4, John MacFarlane wrote:
> >
> > I think you're understanding things okay. Note that the
> > slide level affects how the content gets chopped up into
> > slides. Adding a class "slide level3" to a header won't
> > affect how the content is divided into slides.
> >
> > What I did was add the slide-level option to pandoc as "-V
> > slide-level=3", thinking that that would have the effect I needed, but
> > instead it seemed to do nothing.
>
> There is a command line option: --slide-level=3
>
Well, that's just me being stupid and adding the option in the wrong place.
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/dede8a6d-83f5-41e6-b24b-deca59bc48a1%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
[-- Attachment #1.2: Type: text/html, Size: 2024 bytes --]
^ permalink raw reply [flat|nested] 5+ messages in thread
end of thread, other threads:[~2016-03-26 14:53 UTC | newest]
Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2016-03-25 20:10 reveal-is question about consecutive headings John Muccigrosso
[not found] ` <854d59af-a6da-4abb-9028-51b435715d5e-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org>
2016-03-25 20:30 ` John MACFARLANE
[not found] ` <20160325203028.GE524-nFAEphtLEs/fysO+viCLMa55KtNWUUjk@public.gmane.org>
2016-03-26 4:06 ` John Muccigrosso
[not found] ` <a824a5b6-0e87-4067-8d9d-067fc46caf1c-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org>
2016-03-26 5:16 ` John MACFARLANE
[not found] ` <20160326051649.GE3528-nFAEphtLEs/fysO+viCLMa55KtNWUUjk@public.gmane.org>
2016-03-26 14:53 ` John Muccigrosso
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).