fix markdown snippets