Parsedown::li( $lines )

Description

Source

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

1803
1804
1805
1806
1807
1808
1809
1810
1811
1812
1813
1814
1815
protected function li($lines)
{
    $Elements = $this->linesElements($lines);
 
    if ( ! in_array('', $lines)
        and isset($Elements[0]) and isset($Elements[0]['name'])
        and $Elements[0]['name'] === 'p'
    ) {
        unset($Elements[0]['name']);
    }
 
    return $Elements;
}

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.