3) { $content[] = $line; } else { break; } } $block = [ 'code', 'content' => implode("\n", $content), ]; if (!empty($language)) { $block['language'] = $language; } return [$block, $i]; } }