<?php namespace Todaymade\Daux\Format\HTMLFile\ContentTypes\Markdown;

use Todaymade\Daux\Config;

class CommonMarkConverter extends \Todaymade\Daux\Format\HTML\ContentTypes\Markdown\CommonMarkConverter
{
    protected function getLinkRenderer(Config $config)
    {
        return new LinkRenderer($config);
    }
}

<?php namespace Todaymade\Daux\Format\HTMLFile\ContentTypes\Markdown;

use League\CommonMark\Normalizer\UniqueSlugNormalizerInterface;
use Todaymade\Daux\Config;

class CommonMarkConverter extends \Todaymade\Daux\Format\HTML\ContentTypes\Markdown\CommonMarkConverter
{
    /**
     * Create a new Markdown converter pre-configured for CommonMark
     *
     * @param array<string, mixed> $config
     */
    public function __construct(array $config = [])
    {
        // As we are using a single page, we must make sure permalinks don't collide
        $config['slug_normalizer']['unique'] = UniqueSlugNormalizerInterface::PER_ENVIRONMENT;

        parent::__construct($config);
    }

    protected function getLinkRenderer(Config $config)
    {
        return new LinkRenderer($config);
    }
}

Make sure permalinks are unique in singlepage
Make sure permalinks are unique in singlepage
