This PR fixes an issue where header nesting levels were properly tracked between, but not within, moduledocs.