src/Formatter/Formatter.php
public function parse($text, $context = null)
    {
        $parser = $this->getParser($context);

        $this->events->dispatch(new Parsing($parser, $context, $text));

        return $parser->parse($text);
    }
public function parse($text, $context = null)
    {
        $parser = $this->getParser($context);

        $this->events->dispatch(new Parsing($parser, $context, $text));

        return $parser->parse($text);
    }
public function parse ( $ text , $ context = null ) { $ parser = $ this -> getParser ( $ context ) ; $ this -> events -> dispatch ( new Parsing ( $ parser , $ context , $ text ) ) ; return $ parser -> parse ( $ text ) ; }
Parse text.

@param string $text
@param mixed $context
@return string
Parse text .