From 596350d1f5ce49814807037cf0a8983626f9f5dc Mon Sep 17 00:00:00 2001 From: Emanuil Rusev Date: Fri, 16 Jan 2015 02:49:55 +0200 Subject: [PATCH] improve names of elements --- Parsedown.php | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/Parsedown.php b/Parsedown.php index f61cfa8..8b6c423 100755 --- a/Parsedown.php +++ b/Parsedown.php @@ -1030,7 +1030,7 @@ class Parsedown '!' => array('Image'), '&' => array('Ampersand'), '*' => array('Emphasis'), - '<' => array('UrlTag', 'EmailTag', 'Tag', 'LessThan'), + '<' => array('Url', 'Email', 'Markup', 'LessThan'), '>' => array('GreaterThan'), '[' => array('Link'), '_' => array('Emphasis'), @@ -1167,7 +1167,7 @@ class Parsedown ); } - protected function inlineUrlTag($excerpt) + protected function inlineUrl($excerpt) { if (strpos($excerpt, '>') !== false and preg_match('/^<(\w+:\/{2}[^ >]+)>/i', $excerpt, $matches)) { @@ -1186,7 +1186,7 @@ class Parsedown } } - protected function inlineEmailTag($excerpt) + protected function inlineEmail($excerpt) { if (strpos($excerpt, '>') !== false and preg_match('/^<((mailto:)?\S+?@\S+?)>/i', $excerpt, $matches)) { @@ -1210,7 +1210,7 @@ class Parsedown } } - protected function inlineTag($excerpt) + protected function inlineMarkup($excerpt) { if ($this->markupEscaped or strpos($excerpt, '>') === false) {