Fix escaping conflicts for code blocks