jirutka / asciidoctor-html5s

Semantic HTML5 converter (backend) for Asciidoctor
MIT License
88 stars 10 forks source link

Option to remove extra section or div around lists #12

Open ahus1 opened 5 years ago

ahus1 commented 5 years ago

I'm quite happy with html5s as it provides very clean an minimal HTML that is easy to integrate with for example a blog.

I found that it adds divs around lists (ol and ul), and sections around every hX. Looking into the source the tags will not be necessary until you use titles for lists, or classes for sections.

I'm currently removing these as post-processing steps to receive a minimal HTML. I wonder if I could provide my own sub-templates that override for example olist.html.slim? I assume removing the extra wrapping HTML elements would not suit everyone else.

I'm using the Node.js version of this library. Thanks!