mirror of
https://github.com/erusev/parsedown.git
synced 2023-08-10 21:13:06 +03:00
Normalise link reference lookups
Ref: https://github.com/erusev/parsedown/pull/104
This commit is contained in:
@@ -79,6 +79,8 @@ final class Link implements Inline
|
||||
$definition = \strtolower($label);
|
||||
}
|
||||
|
||||
$definition = \preg_replace('/\s++/', ' ', \trim($definition));
|
||||
|
||||
$data = $State->get(DefinitionBook::class)->lookup($definition);
|
||||
|
||||
if (! isset($data)) {
|
||||
|
||||
Reference in New Issue
Block a user