demydd / pandoc

Automatically exported from code.google.com/p/pandoc
0 stars 0 forks source link

xhtml - wrap sections in enclosing divs #70

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
It would be helpful for some purposes if sections in xhtml
output were wrapped in enclosing divs.  That is, instead of

<h1 id="mysection">My Section</h1>
...

we'd have

<div id="mysection">
<h1>My Section</h1>
...
</div>

(Thanks to Bruce D'Arcus for the suggestion.)

Original issue reported on code.google.com by fiddloso...@gmail.com on 20 Apr 2008 at 4:12

GoogleCodeExporter commented 8 years ago

Original comment by fiddloso...@gmail.com on 20 Apr 2008 at 4:13

GoogleCodeExporter commented 8 years ago
Perhaps this should be optional:  --wrap-sections

Original comment by fiddloso...@gmail.com on 20 Apr 2008 at 4:56

GoogleCodeExporter commented 8 years ago
Yes, it should be optional in my view, and your suggested flag makes sense.

Original comment by bdar...@gmail.com on 6 May 2008 at 4:27

GoogleCodeExporter commented 8 years ago
This would be very useful. I want to manipulate every section following a header
using javascript but for example jquery can not do this easily in the flat 
structure
that pandoc creates now. +1

Original comment by claesatw...@gmail.com on 20 Mar 2009 at 7:15

GoogleCodeExporter commented 8 years ago
Feature added in r1562.  Please test and let me know if there are any problems.

I decided to make it the default behavior in extended pandoc.  I can't see a 
downside
to this.

When --strict is specified, the sections are not wrapped in divs.  And they are 
not
wrapped in s5 output, since that seems to confuse s5 javascript.

Original comment by fiddloso...@gmail.com on 25 Apr 2009 at 12:31