fixing latex-like formatting to proper Markdown