Skip to content

Commit

Permalink
format source
Browse files Browse the repository at this point in the history
  • Loading branch information
nhirschey committed Nov 18, 2022
1 parent c1ff1a2 commit b162b21
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 4 deletions.
8 changes: 6 additions & 2 deletions build/build.fs
Original file line number Diff line number Diff line change
Expand Up @@ -103,9 +103,13 @@ let generateDocs _ =
("install --no-cache --version "
+ release.NugetVersion
+ " --add-source "
+ "\"" + artifactsDir + "\""
+ "\""
+ artifactsDir
+ "\""
+ " --tool-path "
+ "\"" + artifactsDir + "\""
+ "\""
+ artifactsDir
+ "\""
+ " fsdocs-tool")
|> ignore

Expand Down
5 changes: 3 additions & 2 deletions src/FSharp.Formatting.ApiDocs/GenerateModel.fs
Original file line number Diff line number Diff line change
Expand Up @@ -1877,9 +1877,10 @@ module internal SymbolReader =

html.Append("</code>") |> 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
Expand Down

0 comments on commit b162b21

Please sign in to comment.