Use Python-Markdown instead of cMarkdown.
Reimplement line-highlighting with Python-Markdown.