mirror of
https://github.com/erusev/parsedown.git
synced 2023-08-10 21:13:06 +03:00
block » markup
This commit is contained in:
parent
18d3dbf4f6
commit
fe27b70bdb
@ -112,7 +112,7 @@ class Parsedown
|
||||
{
|
||||
# markup (open)
|
||||
|
||||
if ($element['type'] === 'block' and ! isset($element['closed']))
|
||||
if ($element['type'] === 'markup' and ! isset($element['closed']))
|
||||
{
|
||||
if (preg_match('{<'.$element['subtype'].'>$}', $line)) # <open>
|
||||
{
|
||||
@ -356,7 +356,7 @@ class Parsedown
|
||||
$elements []= $element;
|
||||
|
||||
$element = array(
|
||||
'type' => 'block',
|
||||
'type' => 'markup',
|
||||
'subtype' => strtolower($matches[1]),
|
||||
'text' => $pure_line,
|
||||
'depth' => 0,
|
||||
|
Loading…
Reference in New Issue
Block a user