Fixed most blockFormat scenarios that would result in broken code, eg. replacing li with h2.