add handling for pandoc style document titles