1
0
mirror of https://github.com/erusev/parsedown.git synced 2023-08-10 21:13:06 +03:00

Add easy way to remove Components from InlineTyes and BlockTypes

This commit is contained in:
Aidan Woods
2019-01-25 20:54:25 +00:00
parent 9f9ef78662
commit 8fe93f30ac
5 changed files with 50 additions and 2 deletions

View File

@@ -2,6 +2,8 @@
namespace Erusev\Parsedown\Tests;
use Erusev\Parsedown\Components\Inlines\Url;
use Erusev\Parsedown\Configurables\InlineTypes;
use Erusev\Parsedown\Configurables\StrictMode;
use Erusev\Parsedown\Parsedown;
use Erusev\Parsedown\State;
@@ -21,7 +23,8 @@ class CommonMarkTestStrict extends TestCase
protected function setUp()
{
$this->parsedown = new Parsedown(new State([
StrictMode::enabled()
StrictMode::enabled(),
InlineTypes::initial()->removing([Url::class]),
]));
// $this->parsedown->setUrlsLinked(false);
}