Support open markdown file directly.