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:
@@ -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);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user