Skip to content

Commit

Permalink
Fix extra line feeds in link title
Browse files Browse the repository at this point in the history
  • Loading branch information
snnz committed Nov 21, 2024
1 parent 310a55c commit 7abce6d
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/Markdig/Helpers/LinkHelper.cs
Original file line number Diff line number Diff line change
Expand Up @@ -567,6 +567,7 @@ public static bool TryParseTitle<T>(ref T text, out string? title, out char encl
if (c == '\r' && text.PeekChar() == '\n')
{
buffer.Append('\n');
text.SkipChar();
}
continue;
}
Expand Down Expand Up @@ -663,6 +664,7 @@ public static bool TryParseTitleTrivia<T>(ref T text, out string? title, out cha
if (c == '\r' && text.PeekChar() == '\n')
{
buffer.Append('\n');
text.SkipChar();
}
continue;
}
Expand Down

0 comments on commit 7abce6d

Please sign in to comment.