Markdown syntax repair