a bit more work for the markdown editor