Add support for markdown-style headlines (lines beginning with #)