From b162b21804b309e7eecff90b72921947a329a879 Mon Sep 17 00:00:00 2001 From: Nicholas Hirschey Date: Fri, 18 Nov 2022 12:28:35 -0800 Subject: [PATCH] format source --- build/build.fs | 8 ++++++-- src/FSharp.Formatting.ApiDocs/GenerateModel.fs | 5 +++-- 2 files changed, 9 insertions(+), 4 deletions(-) diff --git a/build/build.fs b/build/build.fs index 7e6738cf0..eec34fa93 100644 --- a/build/build.fs +++ b/build/build.fs @@ -103,9 +103,13 @@ let generateDocs _ = ("install --no-cache --version " + release.NugetVersion + " --add-source " - + "\"" + artifactsDir + "\"" + + "\"" + + artifactsDir + + "\"" + " --tool-path " - + "\"" + artifactsDir + "\"" + + "\"" + + artifactsDir + + "\"" + " fsdocs-tool") |> ignore diff --git a/src/FSharp.Formatting.ApiDocs/GenerateModel.fs b/src/FSharp.Formatting.ApiDocs/GenerateModel.fs index dad2540df..5a8bd477b 100644 --- a/src/FSharp.Formatting.ApiDocs/GenerateModel.fs +++ b/src/FSharp.Formatting.ApiDocs/GenerateModel.fs @@ -1877,9 +1877,10 @@ module internal SymbolReader = html.Append("") |> ignore | "code" -> - let code = - let code = Literate.ParseMarkdownString ("```\n" + elem.Value + "\n```") + let code = + let code = Literate.ParseMarkdownString("```\n" + elem.Value + "\n```") Literate.ToHtml(code, lineNumbers = false) + html.Append(code) |> ignore // 'a' is not part of the XML doc standard but is widely used | "a" -> html.Append(elem.ToString()) |> ignore