Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

unnecessary h1 when using horizontal rules to create new slide #484

Closed
yihui opened this issue Apr 17, 2012 · 0 comments
Closed

unnecessary h1 when using horizontal rules to create new slide #484

yihui opened this issue Apr 17, 2012 · 0 comments

Comments

@yihui
Copy link
Contributor

yihui commented Apr 17, 2012

suppose this is test.md

% title
% author

# first slide

asdf

---

second slide

I run pandoc -s -t dzslides test.md -o test.html and will get:

<section>
  <h1 class="title">title</h1>
  <h2 class="author">author</h2>
  <h3 class="date"></h3>
</section>
<section class="slide level1" id="first-slide">
<h1 id="first-slide">first slide</h1>
<p>asdf</p>
</section>
<section class="slide level1" id="section">
<h1 id="section"></h1>
<p>second slide</p>
</section>

Note the second slide has an empty heading <h1 id="section"></h1>, and I guess this should not have been generated because I do not really have a heading for this slide. Sometimes I just want to show an image or blockquote in a slide.

I'm using v1.9.1.1 under Ubuntu.

@jgm jgm closed this as completed in 527be1d Jun 25, 2012
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants