We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent a41f97f commit 55e5a89Copy full SHA for 55e5a89
src/ReferenceParser.php
@@ -81,10 +81,12 @@ public function parse(Cursor $cursor)
81
}
82
83
$previousState = $cursor->saveState();
84
- $cursor->advanceToNextNonSpaceOrNewline();
85
86
- $title = LinkParserHelper::parseLinkTitle($cursor);
87
- if ($title === null) {
+ if ($cursor->advanceToNextNonSpaceOrNewline() > 0) {
+ $title = LinkParserHelper::parseLinkTitle($cursor);
+ }
88
+
89
+ if (!isset($title)) {
90
$title = '';
91
$cursor->restoreState($previousState);
92
0 commit comments