public function renderCodeBlock($content, array $options = array())
    {
        if (!$content instanceof Text) {
            $content = new Text($content);
        }

        $options = $this->createResolver()->resolve($options);

        $tag = Tag::create('pre')
            ->setAttributes($options['attr'])
            ->setText(
                Tag::create('code')
                    ->setText($content->append("\n"))
                    ->render()
            );

        $this->getEmitter()->emit('tag', [$tag]);

        return $tag->render();
    }
public function renderCodeBlock($content, array $options = array())
    {
        if (!$content instanceof Text) {
            $content = new Text($content);
        }

        $options = $this->createResolver()->resolve($options);

        $tag = Tag::create('pre')
            ->setAttributes($options['attr'])
            ->setText(
                Tag::create('code')
                    ->setText($content->append("\n"))
                    ->render()
            );

        $this->getEmitter()->emit('tag', [$tag]);

        return $tag->render();
    }
{@inheritdoc}