src/TokenParser.php
public function parse(Twig_Token $token)
    {
        $line = $token->getLine();

        $this->parser->getStream()->expect(Twig_Token::BLOCK_END_TYPE);

        $body = $this->parser->subparse(function(Twig_Token $token)
        {
            return $token->test('endmarkdown');
        }, true);

        $this->parser->getStream()->expect(Twig_Token::BLOCK_END_TYPE);

        return new Node($body, $line, $this->getTag());
    }
public function parse(Twig_Token $token)
    {
        $line = $token->getLine();

        $this->parser->getStream()->expect(Twig_Token::BLOCK_END_TYPE);

        $body = $this->parser->subparse(function(Twig_Token $token)
        {
            return $token->test('endmarkdown');
        }, true);

        $this->parser->getStream()->expect(Twig_Token::BLOCK_END_TYPE);

        return new Node($body, $line, $this->getTag());
    }
public function parse ( Twig_Token $ token ) { $ line = $ token -> getLine ( ) ; $ this -> parser -> getStream ( ) -> expect ( Twig_Token :: BLOCK_END_TYPE ) ; $ body = $ this -> parser -> subparse ( function ( Twig_Token $ token ) { return $ token -> test ( 'endmarkdown' ) ; } , true ) ; $ this -> parser -> getStream ( ) -> expect ( Twig_Token :: BLOCK_END_TYPE ) ; return new Node ( $ body , $ line , $ this -> getTag ( ) ) ; }
Parse the twig tag.

@param  Twig_Token $token
@return Node
Parse the twig tag .