aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorJohn MacFarlane <jgm@berkeley.edu>2021-08-08 11:20:26 -0700
committerJohn MacFarlane <jgm@berkeley.edu>2021-08-08 11:20:26 -0700
commitc0b68b2030ecdb4ad006443a56ce99aebc92fbc5 (patch)
treeb6674dc9ec797417540e0a8cdd1fc014fb4bdd95 /src
parent6acb674e899e37bbc352a493f956858f7102bc7d (diff)
downloadpandoc-c0b68b2030ecdb4ad006443a56ce99aebc92fbc5.tar.gz
Allow `--slide-level=0`.
When the slide level is set to 0, headings won't be used at all in splitting the document into slides. Horizontal rules must be used to separate slides. Closes #7476.
Diffstat (limited to 'src')
-rw-r--r--src/Text/Pandoc/App/CommandLineOptions.hs4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/Text/Pandoc/App/CommandLineOptions.hs b/src/Text/Pandoc/App/CommandLineOptions.hs
index a6df12715..d2c12573c 100644
--- a/src/Text/Pandoc/App/CommandLineOptions.hs
+++ b/src/Text/Pandoc/App/CommandLineOptions.hs
@@ -576,10 +576,10 @@ options =
(ReqArg
(\arg opt ->
case safeStrRead arg of
- Just t | t >= 1 && t <= 6 ->
+ Just t | t >= 0 && t <= 6 ->
return opt { optSlideLevel = Just t }
_ -> E.throwIO $ PandocOptionError
- "slide level must be a number between 1 and 6")
+ "slide level must be a number between 0 and 6")
"NUMBER")
"" -- "Force header level for slides"