src/Ciconia/Renderer/HtmlRenderer.php
public function renderList($content, array $options = array())
    {
        if (!$content instanceof Text) {
            $content = new Text($content);
        }

        $options = $this->createResolver()
            ->setRequired(array('type'))
            ->setAllowedValues(array('type' => array('ul', 'ol')))
            ->setDefaults(array('type' => 'ul'))
            ->resolve($options);

        $tag = new Tag($options['type']);
        $tag->setText($content->prepend("\n"));
        $tag->setAttributes($options['attr']);

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

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

        $options = $this->createResolver()
            ->setRequired(array('type'))
            ->setAllowedValues(array('type' => array('ul', 'ol')))
            ->setDefaults(array('type' => 'ul'))
            ->resolve($options);

        $tag = new Tag($options['type']);
        $tag->setText($content->prepend("\n"));
        $tag->setAttributes($options['attr']);

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

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