Parsedown::blockCode( $Line, $Block = null )
Description
Source
File: bp-help/vendors/parsedown/Parsedown.php
349 350 351 352 353 354 355 356 357 358 359 360 361 362 363 364 365 366 367 368 369 370 371 372 | protected function blockCode( $Line , $Block = null) { if (isset( $Block ) and $Block [ 'type' ] === 'Paragraph' and ! isset( $Block [ 'interrupted' ])) { return ; } if ( $Line [ 'indent' ] >= 4) { $text = substr ( $Line [ 'body' ], 4); $Block = array ( 'element' => array ( 'name' => 'pre' , 'element' => array ( 'name' => 'code' , 'text' => $text , ), ), ); return $Block ; } } |
Questions?
We're always happy to help with code or other questions you might have! Search our developer docs, contact support, or connect with our sales team.