Escape curly braces in code blocks with attributes