added inside_code_block ivar to track when rendering