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

Mixing sections and divs results in an invalid HTML #127

Closed
jgm opened this issue Jun 10, 2011 · 2 comments
Closed

Mixing sections and divs results in an invalid HTML #127

jgm opened this issue Jun 10, 2011 · 2 comments
Assignees

Comments

@jgm
Copy link
Owner

jgm commented Jun 10, 2011

Pandoc 1.5.1.1 (at least, I'm not aware of older versions) results in an
invalid HTML with the following input:

<blockquote>

Heading
=======

Contents!

</blockquote>

with the following output:

<blockquote>
<div id="heading"
><h1
  >Heading</h1
  ><p
  >Contents!</p
  ></blockquote>

</div
>

Two consecutive sections enclosed in div shows the much worse behavior:

<div class="one">
Section 1
=========

Contents!

</div> 

<div class="two">
Section 2
=========

Contents again!

</div>

with the following output: (This HTML is valid by accident but far from
expected!)

<div class="one"><div id="section-1"
><h1
  >Section 1</h1
  ><p
  >Contents!</p
  ></div>

<div class="two"></div
><div id="section-2"
><h1
  >Section 2</h1
  ><p
  >Contents again!</p
  ></div>

</div
>

I consider this bug very significant since it prohibits the natural mixing
of Markdown and HTML. For now the only workaround seems to be writing
sections in HTML (i.e.

Section

).

Google Code Info:
Issue #: 239
Author: lifthras...@gmail.com
Created On: 2010-05-24T17:48:55.000Z
Closed On: 2010-05-25T06:22:36.000Z

@ghost ghost assigned jgm Jun 10, 2011
@jgm jgm closed this as completed Jun 10, 2011
@jgm
Copy link
Owner Author

jgm commented Jun 10, 2011

Oops, I forgot changing the bug title: this applies to every HTML containers and not
just div elements.

Google Code Info:
Author: lifthras...@gmail.com
Created On: 2010-05-24T17:49:52.000Z

@jgm
Copy link
Owner Author

jgm commented Jun 10, 2011

This appears to be a dup of Issue #230.

Google Code Info:
Author: fiddloso...@gmail.com
Created On: 2010-05-25T06:22:36.000Z

jgm added a commit that referenced this issue Feb 27, 2017
[Reveals] Be able to change customize 'progress' and 'controls'
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

1 participant