Contents

Parsedown::blockRule( $Line )

Description

Source

File: bp-help/vendors/parsedown/Parsedown.php

792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
protected function blockRule($Line)
{
    $marker = $Line['text'][0];
 
    if (substr_count($Line['text'], $marker) >= 3 and chop($Line['text'], " $marker") === '')
    {
        $Block = array(
            'element' => array(
                'name' => 'hr',
            ),
        );
 
        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.