diff --git a/src/Ionide.KeepAChangelog.Tasks/Library.fs b/src/Ionide.KeepAChangelog.Tasks/Library.fs index 48425b3..ae20a32 100644 --- a/src/Ionide.KeepAChangelog.Tasks/Library.fs +++ b/src/Ionide.KeepAChangelog.Tasks/Library.fs @@ -92,8 +92,12 @@ type ParseChangelogs() = sortedReleases |> Seq.tryHead |> Option.iter (fun release -> - release.Data - |> Option.iter (fun data -> this.LatestReleaseNotes <- data.ToMarkdown())) + match release.Description, release.Data with + | Some desc, None -> this.LatestReleaseNotes <- desc + | None, Some data -> this.LatestReleaseNotes <- data.ToMarkdown() + | Some desc, Some data -> + this.LatestReleaseNotes <- $"{desc}{System.Environment.NewLine}{data.ToMarkdown()}" + | None, None -> ()) true | Error(formatted, msg) ->