mirror of
https://github.com/erusev/parsedown.git
synced 2023-08-10 21:13:06 +03:00
Remap text-level elements retreival
This commit is contained in:
parent
799ced66fa
commit
e2c9b2fa2b
|
@ -2,6 +2,8 @@
|
||||||
|
|
||||||
namespace Erusev\Parsedown\Tests;
|
namespace Erusev\Parsedown\Tests;
|
||||||
|
|
||||||
|
use Erusev\Parsedown\Html\Renderables\Element;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Test Parsedown against the CommonMark spec, but less aggressive
|
* Test Parsedown against the CommonMark spec, but less aggressive
|
||||||
*
|
*
|
||||||
|
@ -22,7 +24,8 @@ class CommonMarkTestWeak extends CommonMarkTestStrict
|
||||||
{
|
{
|
||||||
parent::setUp();
|
parent::setUp();
|
||||||
|
|
||||||
$textLevelElements = $this->parsedown->getTextLevelElements();
|
$textLevelElements = \array_keys(Element::TEXT_LEVEL_ELEMENTS);
|
||||||
|
|
||||||
\array_walk($textLevelElements, function (&$element) {
|
\array_walk($textLevelElements, function (&$element) {
|
||||||
$element = \preg_quote($element, '/');
|
$element = \preg_quote($element, '/');
|
||||||
});
|
});
|
||||||
|
|
Loading…
Reference in New Issue
Block a user