src/Ciconia/Console/Command/CiconiaCommand.php
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;
    }
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;
    }
Creates an instance of Ciconia

@param InputInterface $input The InputInterface instance

@return Ciconia|\Ciconia\Diagnose\Ciconia