mirror of
https://github.com/erusev/parsedown.git
synced 2023-08-10 21:13:06 +03:00
We should be using strict mode in commonmark benchmark
This commit is contained in:
parent
67231cbae1
commit
9d97b8eb6a
@ -2,7 +2,9 @@
|
|||||||
|
|
||||||
namespace Erusev\Parsedown\Tests;
|
namespace Erusev\Parsedown\Tests;
|
||||||
|
|
||||||
|
use Erusev\Parsedown\Configurables\StrictMode;
|
||||||
use Erusev\Parsedown\Parsedown;
|
use Erusev\Parsedown\Parsedown;
|
||||||
|
use Erusev\Parsedown\State;
|
||||||
use PHPUnit\Framework\TestCase;
|
use PHPUnit\Framework\TestCase;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
@ -18,7 +20,9 @@ class CommonMarkTestStrict extends TestCase
|
|||||||
|
|
||||||
protected function setUp()
|
protected function setUp()
|
||||||
{
|
{
|
||||||
$this->parsedown = new Parsedown;
|
$this->parsedown = new Parsedown(new State([
|
||||||
|
StrictMode::enabled()
|
||||||
|
]));
|
||||||
// $this->parsedown->setUrlsLinked(false);
|
// $this->parsedown->setUrlsLinked(false);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user