public function markdown(InputInterface $input, OutputInterface $output)
    {
        $output->writeln('# Routes');
        $output->writeln('');
        $url = rtrim($this->options['url'], '/');

        foreach ($this->router->getRoutes() as $route) {
            $output->writeln(sprintf('### `%s` [%s](%s)',
                implode(', ', $route->getMethods()),
                $route->getPattern(),
                $url.$route->getPattern()
            ));

            if (is_string($route->getCallable())) {
                $output->writeln('##### '.$route->getCallable());
            }
            if (!empty($route->getName())) {
                $output->writeln('###### '.$route->getName());
            }

            $output->writeln('');
        }
    }