1
0
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:
Aidan Woods 2019-01-20 02:55:12 +00:00
parent 799ced66fa
commit e2c9b2fa2b
No known key found for this signature in database
GPG Key ID: 9A6A8EFAA512BBB9

View File

@ -2,6 +2,8 @@
namespace Erusev\Parsedown\Tests;
use Erusev\Parsedown\Html\Renderables\Element;
/**
* Test Parsedown against the CommonMark spec, but less aggressive
*
@ -22,7 +24,8 @@ class CommonMarkTestWeak extends CommonMarkTestStrict
{
parent::setUp();
$textLevelElements = $this->parsedown->getTextLevelElements();
$textLevelElements = \array_keys(Element::TEXT_LEVEL_ELEMENTS);
\array_walk($textLevelElements, function (&$element) {
$element = \preg_quote($element, '/');
});