Skip to content

reveal.js: Headers are not generated correctly when having inline image only slide #2329

Closed
Quintasan opened this Issue · 6 comments

2 participants

@Quintasan

When you try to create an inline image only slide the next slide will fail to parse.
I'm running pandoc 1.15.0.6

Minimal working example:

# Test

## Image slide 1

![Placekitten](http://placekitten.com/200/300)\

## This will fail

## Image slide 2

![Placekitten](http://placekitten.com/200/300)\
However

## This will not

In case the description is not clear:
image

@jgm
Owner
@Quintasan

(What I really want to do is to have a named section with only image inside, no headers, but that's outside of scope of this bug)

Well, I just basically pasted what the documentation said, namely:

http://pandoc.org/README.html#images

I didn't realize that the next line wouldn't be recognized as a blank line – my bad then.

@jgm
Owner
@Quintasan

On a sidenote is it possible to somehow:
a) have some style apply only to the generated header (not the whole section),
b) don't generate headers automatically?

Currently I'm circumventing the issue by removing the headers by hand but that's cumbersome. The first approach would be nice but I have no idea about the complexity of such solution. Technically I could write my slides using HAML or Slim, since they give more control, but I'd rather not reinvent the wheel if possible.

@jgm
Owner
@Quintasan

@jgm Thanks!

@Quintasan Quintasan closed this
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Something went wrong with that request. Please try again.