Skip to content

Commit

Permalink
format
Browse files Browse the repository at this point in the history
  • Loading branch information
nhirschey committed Nov 22, 2023
1 parent d4fe9fd commit f86f076
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions src/FSharp.Formatting.Literate/Literate.fs
Original file line number Diff line number Diff line change
Expand Up @@ -253,9 +253,9 @@ type Literate private () =
match rootInputFolder with
| None -> "C:\\script.fsx"
| Some r -> Path.Combine(r, "script.fsx")

let content = ParsePynb.pynbStringToFsx content

ParseScript(parseOptions, ctx)
.ParseAndCheckScriptFile(filePath, content, rootInputFolder, onError)
|> Transformations.generateReferences references
Expand Down Expand Up @@ -575,8 +575,7 @@ type Literate private () =
let parseOptions =
match outputKind with
| OutputKind.Fsx
| OutputKind.Pynb ->
(MarkdownParseOptions.ParseCodeAsOther)
| OutputKind.Pynb -> (MarkdownParseOptions.ParseCodeAsOther)
| _ -> MarkdownParseOptions.None

let fsx = ParsePynb.pynbToFsx input
Expand Down

0 comments on commit f86f076

Please sign in to comment.