summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJohn MacFarlane <jgm@berkeley.edu>2013-07-03 12:47:35 -0700
committerJohn MacFarlane <jgm@berkeley.edu>2013-07-03 12:47:35 -0700
commit1de55ecbbdc694cc853ae707b8a1f7d65af9eefd (patch)
tree5aa714116712429801207dc6da7573b82bf8abbf
parent3deab5d8e343eef791c239f7b3b7e2ef53304824 (diff)
`--toc-level` no longer implies `--toc`.
Reason: EPUB users who don't want a visible TOC may still want to set the TOC level for in the book navigation.
-rw-r--r--README2
-rw-r--r--pandoc.hs3
2 files changed, 2 insertions, 3 deletions
diff --git a/README b/README
index 0c8d144fe..43e522976 100644
--- a/README
+++ b/README
@@ -323,7 +323,7 @@ General writer options
`--toc-depth=`*NUMBER*
: Specify the number of section levels to include in the table
of contents. The default is 3 (which means that level 1, 2, and 3
- headers will be listed in the contents). Implies `--toc`.
+ headers will be listed in the contents).
`--no-highlight`
: Disables syntax highlighting for code blocks and inlines, even when
diff --git a/pandoc.hs b/pandoc.hs
index 29a4fb213..18124da3a 100644
--- a/pandoc.hs
+++ b/pandoc.hs
@@ -360,8 +360,7 @@ options =
(\arg opt -> do
case safeRead arg of
Just t | t >= 1 && t <= 6 ->
- return opt { optTOCDepth = t,
- optTableOfContents = True }
+ return opt { optTOCDepth = t }
_ -> err 57 $
"TOC level must be a number between 1 and 6")
"NUMBER")