Incorporate summary and endmatter into haddock markup.