Adding handling for code blocks with child indexterm elements