fixing spans inside code blocks