Fix #247 - Markdown partially stripped on edit