Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions Program.cs
Original file line number Diff line number Diff line change
Expand Up @@ -220,11 +220,11 @@ string Link(string uid, bool linkFromGroupedType, bool nameOnly = false, bool li
summary = summary.Replace("\n", config.ForcedNewline);

summary = HtmlEscape(summary);

if (config.UnescapeCodeBlocks)
summary = markdownCodeBlockRegex.Replace(summary!,
match => $"```{match.Groups[1].Value.Trim()}\n{WebUtility.HtmlDecode(match.Groups[2].Value.Trim())}\n```");

return summary;
}

Expand Down Expand Up @@ -355,7 +355,7 @@ await Parallel.ForEachAsync(items, async (item, _) =>
if (string.IsNullOrWhiteSpace(method.Syntax.Return?.Description))
str.AppendLine();
else
str.Append(": " + GetSummary(method.Syntax.Return.Description, isGroupedType));
str.AppendLine(": " + GetSummary(method.Syntax.Return.Description, isGroupedType));
}

if (method.Syntax.Parameters is { Length: > 0 })
Expand Down