mirror of
https://github.com/erusev/parsedown.git
synced 2023-08-10 21:13:06 +03:00
nested calls to lines should not reset reference definitions
This commit is contained in:
parent
2595f366d9
commit
f310bbe13f
@ -48,6 +48,9 @@ class Parsedown
|
||||
# trim line breaks
|
||||
$markup = trim($markup, "\n");
|
||||
|
||||
# clean up
|
||||
$this->references = array();
|
||||
|
||||
return $markup;
|
||||
}
|
||||
|
||||
@ -242,10 +245,6 @@ class Parsedown
|
||||
|
||||
# ~
|
||||
|
||||
$this->references = array();
|
||||
|
||||
# ~
|
||||
|
||||
return $markup;
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user