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

remove goto to provide support for PHP 5.2

This commit is contained in:
Emanuil Rusev 2013-11-18 21:42:00 +02:00
parent 67b51794d8
commit 96bf75bd91

View File

@ -238,20 +238,11 @@ class Parsedown
break;
}
# ~
if ($line[0] >= 'a' and $line[0] !== '~' or $line[0] >= 'A' and $line[0] <= 'Z')
{
goto paragraph;
}
# ~
$deindented_line = $line;
#
# indentation sensitive types
$deindented_line = $line;
switch ($line[0])
{
case ' ':
@ -500,9 +491,7 @@ class Parsedown
continue;
}
# ~
paragraph:
# paragraph
if ($element['type'] === 'p')
{