Handling of #-, and title\n#####-style headlines