erebor/asciidoctor — pull request #20 by mojavelinux (2012-12-17 03:35:18+00:00)
Title: Rework templates

Change prefix for block templates from section_ to block_, resolving issue #16.

Rework the templates to be more compliant w/ the HTML5 set from AsciiDoc and be more intelligent about whitespace and indentation. Prior to returning the outer document, empty lines are removed.

Also, embed the default stylesheet from AsciiDoc if the stylesheet attribute is set to a blank value. If the attribute value is not blank, link to it.

We are very close to our output matching the default HTML5 output from AsciiDoc, in particular our own README.

\* This pull request is based on the previous one, so address that one first, then we can rebase if necessary.