Merge pull request #122 from wkpark/marker_index

use $closestMarkerIndex
This commit is contained in:
Emanuil Rusev 2014-02-27 14:14:14 +02:00
commit 886c620440
1 changed files with 2 additions and 2 deletions

View File

@ -1127,14 +1127,14 @@ class Parsedown
if ($text[1] === $closestMarker and preg_match(self::$strongRegex[$closestMarker], $text, $matches))
{
$markers[] = $closestMarker;
$markers[$closestMarkerIndex] = $closestMarker;
$matches[1] = $this->parseLine($matches[1], $markers);
$markup .= '<strong>'.$matches[1].'</strong>';
}
elseif (preg_match(self::$emRegex[$closestMarker], $text, $matches))
{
$markers[] = $closestMarker;
$markers[$closestMarkerIndex] = $closestMarker;
$matches[1] = $this->parseLine($matches[1], $markers);
$markup .= '<em>'.$matches[1].'</em>';