lib/Pico.php
public function getParsedown()
    {
        if ($this->parsedown === null) {
            $className = $this->config['content_config']['extra'] ? 'ParsedownExtra' : 'Parsedown';
            $this->parsedown = new $className();

            $this->parsedown->setBreaksEnabled((bool) $this->config['content_config']['breaks']);
            $this->parsedown->setMarkupEscaped((bool) $this->config['content_config']['escape']);
            $this->parsedown->setUrlsLinked((bool) $this->config['content_config']['auto_urls']);

            $this->triggerEvent('onParsedownRegistered', array(&$this->parsedown));
        }

        return $this->parsedown;
    }
public function getParsedown()
    {
        if ($this->parsedown === null) {
            $className = $this->config['content_config']['extra'] ? 'ParsedownExtra' : 'Parsedown';
            $this->parsedown = new $className();

            $this->parsedown->setBreaksEnabled((bool) $this->config['content_config']['breaks']);
            $this->parsedown->setMarkupEscaped((bool) $this->config['content_config']['escape']);
            $this->parsedown->setUrlsLinked((bool) $this->config['content_config']['auto_urls']);

            $this->triggerEvent('onParsedownRegistered', array(&$this->parsedown));
        }

        return $this->parsedown;
    }
public function getParsedown ( ) { if ( $ this -> parsedown === null ) { $ className = $ this -> config [ 'content_config' ] [ 'extra' ] ? 'ParsedownExtra' : 'Parsedown' ; $ this -> parsedown = new $ className ( ) ; $ this -> parsedown -> setBreaksEnabled ( ( bool ) $ this -> config [ 'content_config' ] [ 'breaks' ] ) ; $ this -> parsedown -> setMarkupEscaped ( ( bool ) $ this -> config [ 'content_config' ] [ 'escape' ] ) ; $ this -> parsedown -> setUrlsLinked ( ( bool ) $ this -> config [ 'content_config' ] [ 'auto_urls' ] ) ; $ this -> triggerEvent ( 'onParsedownRegistered' , array ( & $ this -> parsedown ) ) ; } return $ this -> parsedown ; }
Returns the Parsedown markdown parser

This method triggers the `onParsedownRegistered` event when the
Parsedown markdown parser wasn't initiated yet.

@return Parsedown Parsedown markdown parser
Returns the Parsedown markdown parser