adding error condition that throws when xmls cant parse the HTML in a markdown string