protected function createCiconia(InputInterface $input)
    {
        if ($input->getOption('diagnose')) {
            $ciconia = new \Ciconia\Diagnose\Ciconia();
        } else {
            $ciconia = new Ciconia();
        }

        if ($input->getOption('format') == 'xhtml') {
            $ciconia->setRenderer(new XhtmlRenderer());
        }

        if ($input->getOption('gfm')) {
            $ciconia->addExtensions([
                new FencedCodeBlockExtension(),
                new InlineStyleExtension(),
                new TaskListExtension(),
                new WhiteSpaceExtension(),
                new TableExtension(),
                new UrlAutoLinkExtension()
            ]);
        }

        return $ciconia;
    }