Better parsing for markdown