jgm/pandoc — pull request #585 by simonbaird (2012-08-14 06:46:33+00:00)
Title: Command line option to specify that DocBook should use recursive <section> elements

I'm using [Publican](https://fedorahosted.org/publican/) and it expects the nested [section tags](http://docbook.org/tdg5/en/html/section.html) rather than the [sect1 ... sect5](http://www.docbook.org/tdg/en/html/sect1.html) tags.

Currently I've got some hacks to work around it, but it would be nice if pandoc could do it.
Would you consider something like this?

This is working for me. My devel environment is Fedora 17.

Does it need a test? Do you think --nested-sections would be a better name for it? (I was considering --docbook-recursive-sections but thought it was a bit long).