diff --git a/RELEASE_NOTES.md b/RELEASE_NOTES.md index e54bd9b2..8a318b6a 100644 --- a/RELEASE_NOTES.md +++ b/RELEASE_NOTES.md @@ -7,6 +7,8 @@ * Replace deprecated `System.Net.WebClient` with `System.Net.Http.HttpClient` in the image downloader used by `--saveimages`. Removes the `#nowarn "44"` suppression. * Bump `Newtonsoft.Json` transitive-dependency pin from 13.0.3 to 13.0.4. * Bump `System.Memory` transitive-dependency pin from 4.5.5 to 4.6.3.0 +* Remove stale `VersionOverride="43.12.201"` on the `FSharp.Compiler.Service` reference in `FSharp.Formatting.Markdown.fsproj`; the package now uses the central pin (`43.12.202`) from `Directory.Packages.props`, eliminating the NU1605 build warning. +* Replace `Enumerable.Cast` (LINQ) with `Seq.cast` (idiomatic F#) in `MarkdownUtils.fs`, removing the `open System.Linq` import. ### Fixed * Fix `Markdown.ToMd` silently dropping YAML frontmatter when serialising a parsed `MarkdownDocument` back to Markdown text. Frontmatter is now preserved with its `---` delimiters. diff --git a/src/FSharp.Formatting.Markdown/FSharp.Formatting.Markdown.fsproj b/src/FSharp.Formatting.Markdown/FSharp.Formatting.Markdown.fsproj index bfec7854..b084c17c 100644 --- a/src/FSharp.Formatting.Markdown/FSharp.Formatting.Markdown.fsproj +++ b/src/FSharp.Formatting.Markdown/FSharp.Formatting.Markdown.fsproj @@ -26,7 +26,7 @@ - + diff --git a/src/FSharp.Formatting.Markdown/MarkdownUtils.fs b/src/FSharp.Formatting.Markdown/MarkdownUtils.fs index 1fb7207c..6b784184 100644 --- a/src/FSharp.Formatting.Markdown/MarkdownUtils.fs +++ b/src/FSharp.Formatting.Markdown/MarkdownUtils.fs @@ -6,7 +6,6 @@ namespace rec FSharp.Formatting.Markdown open System open System.Collections.Generic -open System.Linq open System.Xml.Linq open FSharp.Formatting.Templating @@ -423,7 +422,7 @@ module internal MarkdownUtils = let attributes = match System.Xml.XPath.Extensions.XPathEvaluate(element, "//*/@*[contains(., '.md')]") with | :? System.Collections.IEnumerable as enumerable -> - enumerable |> Enumerable.Cast |> Seq.toArray + enumerable |> Seq.cast |> Seq.toArray | _ -> Array.empty if Array.isEmpty attributes then