Replace HTML document with Markdown version