git.iko.soy/typeable/pandoc
on master help sign in
Print informative message when failing with use of `--normalize`.

We may want to think of some kind of graceful fallback, but the present behavior has the advantage of forcing people to update scripts when updating to pandoc 2.0. See #3786.

commit050036c036bea4dba65efd033230d552ef637abc authorJohn MacFarlane <jgm@berkeley.edu> dateWed 12 Jul 2017, 16:51 (9 years ago) parent013fd1c
1 file changed+2
src/Text/Pandoc/App.hs+2
src/Text/Pandoc/App.hs+2
@@ -1564,6 +1564,8 @@ handleUnrecognizedOption :: String -> [String] -> [String]
15641564handleUnrecognizedOption "--smart" =
15651565 (("--smart/-S has been removed. Use +smart or -smart extension instead.\n" ++
15661566 "For example: pandoc -f markdown+smart -t markdown-smart.") :)
1567+handleUnrecognizedOption "--normalize" =
1568+ ("--normalize has been removed. Normalization is now automatic." :)
15671569handleUnrecognizedOption "-S" = handleUnrecognizedOption "--smart"
15681570handleUnrecognizedOption "--old-dashes" =
15691571 ("--old-dashes has been removed. Use +old_dashes extension instead." :)