<?php

namespace App\PostProcessor;

use cebe\markdown\GithubMarkdown;

class FilterMarkdown implements Filter
{
    public function getName()
    {
        return 'Markdown';
    }

    public function preProcess($post)
    {
        //
    }

    public function postProcess($post)
    {
        $parser = new GithubMarkdown();
        $parser->html5 = true;
        $parser->enableNewlines = true;

        return $parser->parse($post);
    }
}
<?php

namespace App\PostProcessor;

use cebe\markdown\GithubMarkdown;

class FilterMarkdown implements Filter
{
    public function getName()
    {
        return 'Markdown';
    }

    public function preProcess($post)
    {
        //
    }

    public function postProcess($post)
    {
        $parser = new GithubMarkdown();
        $parser->html5 = true;
        $parser->enableNewlines = true;
        $parser->keepListStartNumber = true;

        return $parser->parse($post);
    }
}
Set flag keepListStartNumber for the markdown parser. Means lists will start at whatever number is writen, rather than 1.
Set flag keepListStartNumber for the markdown parser. Means lists will start at whatever number is writen, rather than 1.
