protected function handleText(array $token) { $node = $this->createNode('text', $token); $node->value = $token['value']; $node->level = $token['level']; $node->escaped = $token['escaped']; if ($this->current) { $this->current->append($node); } else { $this->current = $node; } }