Fix indentation in markup so that chars are escaped correctly

@ssk2