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

expression assignments should be separate

This commit is contained in:
Emanuil Rusev 2014-01-26 19:05:24 +02:00
parent 3ac9b96e57
commit 250ba80356

View File

@ -199,6 +199,7 @@ class Parsedown
unset($block['first']);
$block['last'] = true;
$block['lines'] = array(
preg_replace('/^[ ]{0,4}/', '', $matches[3]),
);
@ -320,6 +321,7 @@ class Parsedown
}
$block['type'] = 'heading';
$block['level'] = $line[0] === '-' ? 2 : 1;
continue 2;