Skip to content

Commit 6261660

Browse files
authored
Explain why not to normalize link title into empty strings
1 parent 6d1fa96 commit 6261660

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
@@ -411,7 +411,7 @@ public static bool TryParseInlineLink(ref StringSlice text, out string? link, ou
411411
{
412412
// Skip ')'
413413
text.SkipChar();
414-
// not to normalize nulls
414+
// not to normalize nulls into empty strings, since LinkInline.Title property is nullable.
415415
}
416416

417417
return isValid;
@@ -1565,4 +1565,4 @@ public static bool TryParseLabelTrivia<T>(ref T lines, bool allowEmpty, out stri
15651565
label = buffer.ToString();
15661566
return true;
15671567
}
1568-
}
1568+
}

0 commit comments

Comments
 (0)