Skip to content

Commit ab8e85b

Browse files
committed
Remove additional condition, since a carriage return constitute a line ending regardless of whether it is followed by a line feed or not.
1 parent 90bc15c commit ab8e85b

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/Markdig/Helpers/LinkHelper.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1129,7 +1129,7 @@ public static bool TryParseLinkReferenceDefinition<T>(ref T text,
11291129
c = text.NextChar();
11301130
}
11311131

1132-
if (c != '\0' && c != '\n' && (c != '\r' || text.PeekChar() != '\n'))
1132+
if (c != '\0' && c != '\n' && c != '\r')
11331133
{
11341134
// If we were able to parse the url but the title doesn't end with space,
11351135
// we are still returning a valid definition
@@ -1269,7 +1269,7 @@ public static bool TryParseLinkReferenceDefinitionTrivia<T>(
12691269
c = text.NextChar();
12701270
}
12711271

1272-
if (c != '\0' && c != '\n' && (c != '\r' || text.PeekChar() != '\n'))
1272+
if (c != '\0' && c != '\n' && c != '\r')
12731273
{
12741274
// If we were able to parse the url but the title doesn't end with space,
12751275
// we are still returning a valid definition

0 commit comments

Comments
 (0)