khajavi / pandoc

Automatically exported from code.google.com/p/pandoc
GNU General Public License v2.0
0 stars 0 forks source link

Mixing sections and divs results in an invalid HTML #239

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
Pandoc 1.5.1.1 (at least, I'm not aware of older versions) results in an 
invalid HTML with the following input:
Heading ======= Contents!

with the following output:

Heading

Contents!

</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

).


Original issue reported on code.google.com by `lifthras...@gmail.com` on 24 May 2010 at 5:48
* Merged into: #230
GoogleCodeExporter commented 9 years ago
Oops, I forgot changing the bug title: this applies to every HTML containers 
and not 
just div elements.

Original comment by lifthras...@gmail.com on 24 May 2010 at 5:49

GoogleCodeExporter commented 9 years ago
This appears to be a dup of Issue #230.

Original comment by fiddloso...@gmail.com on 25 May 2010 at 6:22