resolves #971 top-level content must be wrapped inside preamble in book doctype