Capture code only if there's an opening code block