Extract title from markdown files