mirror of
https://github.com/jgm/pandoc.git
synced 2026-09-03 14:15:40 +00:00
Improved deprecation warnings for --html5, --offline.
This commit is contained in:
+4
-3
@@ -257,7 +257,7 @@ options =
|
||||
, Option "5" ["html5"]
|
||||
(NoArg
|
||||
(\opt -> do
|
||||
warn $ "pandoc: --html5 is deprecated. "
|
||||
warn $ "--html5 is deprecated. "
|
||||
++ "Use the html5 output format instead."
|
||||
return opt { optHtml5 = True }))
|
||||
"" -- "Produce HTML5 in HTML output"
|
||||
@@ -345,8 +345,9 @@ options =
|
||||
|
||||
, Option "" ["offline"]
|
||||
(NoArg
|
||||
(\opt -> return opt { optSelfContained = True,
|
||||
optStandalone = True }))
|
||||
(\opt -> do warn $ "--offline is deprecated. Use --self-contained instead."
|
||||
return opt { optSelfContained = True,
|
||||
optStandalone = True }))
|
||||
"" -- "Make slide shows include all the needed js and css"
|
||||
-- deprecated synonym for --self-contained
|
||||
|
||||
|
||||
Reference in New Issue
Block a user