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

Compare commits

...

3 Commits
0.2.0 ... 0.2.1

Author SHA1 Message Date
f43f54b877 remove redundant parse_inline_elements call 2013-10-23 00:50:32 +03:00
d733acc94e add .idea to .gitignore 2013-10-23 00:44:21 +03:00
6a0695deb9 correct spelling of $link_definition 2013-10-13 22:52:36 +03:00
2 changed files with 5 additions and 6 deletions

1
.gitignore vendored
View File

@ -1,2 +1,3 @@
.DS_Store .DS_Store
.idea
nbproject nbproject

View File

@ -506,8 +506,6 @@ class Parsedown
$element = '<a href="'.$matches[4].'">'.$element_text.'</a>'; $element = '<a href="'.$matches[4].'">'.$element_text.'</a>';
} }
$element_text = $this->parse_inline_elements($matches[1]);
# ~ # ~
$code = "\x1A".'$'.$index; $code = "\x1A".'$'.$index;
@ -526,15 +524,15 @@ class Parsedown
{ {
foreach ($matches as $matches) foreach ($matches as $matches)
{ {
$link_difinition = isset($matches[3]) && $matches[3] $link_definition = isset($matches[3]) && $matches[3]
? $matches[3] ? $matches[3]
: $matches[2]; # implicit : $matches[2]; # implicit
$link_difinition = strtolower($link_difinition); $link_definition = strtolower($link_definition);
if (isset($this->reference_map[$link_difinition])) if (isset($this->reference_map[$link_definition]))
{ {
$url = $this->reference_map[$link_difinition]; $url = $this->reference_map[$link_definition];
if ($matches[1]) # image if ($matches[1]) # image
{ {