convert structured text to markdown