Parsedown::blockHeader( $Line )
Description
Source
File: bp-help/vendors/parsedown/Parsedown.php
539 540 541 542 543 544 545 546 547 548 549 550 551 552 553 554 555 556 557 558 559 560 561 562 563 564 565 566 567 568 569 | protected function blockHeader( $Line ) { $level = strspn ( $Line [ 'text' ], '#' ); if ( $level > 6) { return ; } $text = trim( $Line [ 'text' ], '#' ); if ( $this ->strictMode and isset( $text [0]) and $text [0] !== ' ' ) { return ; } $text = trim( $text , ' ' ); $Block = array ( 'element' => array ( 'name' => 'h' . $level , 'handler' => array ( 'function' => 'lineElements' , 'argument' => $text , 'destination' => 'elements' , ) ), ); 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.