CommandLineOptions.hs (pandoc-2.11.1.1) | : | CommandLineOptions.hs (pandoc-2.11.2) | ||
---|---|---|---|---|
skipping to change at line 532 | skipping to change at line 532 | |||
"section" -> return EndOfSection | "section" -> return EndOfSection | |||
"document" -> return EndOfDocument | "document" -> return EndOfDocument | |||
_ -> E.throwIO $ PandocOptionError $ T.pack | _ -> E.throwIO $ PandocOptionError $ T.pack | |||
("Unknown option for reference-location: " ++ arg ) | ("Unknown option for reference-location: " ++ arg ) | |||
return opt { optReferenceLocation = action }) | return opt { optReferenceLocation = action }) | |||
"block|section|document") | "block|section|document") | |||
"" -- "Accepting or reject MS Word track-changes."" | "" -- "Accepting or reject MS Word track-changes."" | |||
, Option "" ["atx-headers"] | , Option "" ["atx-headers"] | |||
(NoArg | (NoArg | |||
(\opt -> return opt { optSetextHeaders = False } )) | (\opt -> do | |||
deprecatedOption "--atx-headers" | ||||
"Use --markdown-headings=atx instead." | ||||
return opt { optSetextHeaders = False } )) | ||||
"" -- "Use atx-style headers for markdown" | "" -- "Use atx-style headers for markdown" | |||
, Option "" ["markdown-headings"] | ||||
(ReqArg | ||||
(\arg opt -> do | ||||
headingFormat <- case arg of | ||||
"setext" -> pure True | ||||
"atx" -> pure False | ||||
_ -> E.throwIO $ PandocOptionError $ T.pack | ||||
("Unknown markdown heading format: " ++ arg ++ | ||||
". Expecting atx or setext") | ||||
pure opt { optSetextHeaders = headingFormat } | ||||
) | ||||
"setext|atx") | ||||
"" | ||||
, Option "" ["listings"] | , Option "" ["listings"] | |||
(NoArg | (NoArg | |||
(\opt -> return opt { optListings = True })) | (\opt -> return opt { optListings = True })) | |||
"" -- "Use listings package for LaTeX code blocks" | "" -- "Use listings package for LaTeX code blocks" | |||
, Option "i" ["incremental"] | , Option "i" ["incremental"] | |||
(NoArg | (NoArg | |||
(\opt -> return opt { optIncremental = True })) | (\opt -> return opt { optIncremental = True })) | |||
"" -- "Make list items display incrementally in Slidy/Slideous/ S5" | "" -- "Make list items display incrementally in Slidy/Slideous/ S5" | |||
End of changes. 2 change blocks. | ||||
1 lines changed or deleted | 18 lines changed or added |