Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Set syntax_hl @requires_stylesheet on root doc
The root document, after nearly all its content is moved to other, child documents, is unlikely to have anything requiring highlighting. Thus, the Document object's syntax_highlighter @requires_stylesheet variable does not get set and a stylesheet required by any child page(s) will not be written out. To fix this, while converting the child pages, check whether any of those pages has a syntax_highlighter with the @requires_stylesheet variable set. If so, set this variable on the root document. This causes Asciidoctor to write out the syntax highlighter stylesheet while it is converting the root document (in `lib/asciidoctor/convert.rb`). Closes issue #34.
- Loading branch information