git.iko.soy/typeable/pandoc
on master help sign in
`--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.

commit1de55ecbbdc694cc853ae707b8a1f7d65af9eefd authorJohn MacFarlane <jgm@berkeley.edu> dateWed 3 Jul 2013, 12:47 (13 years ago) parent3deab5d
2 files changed+2−3
README+1−1 pandoc.hs+1−2
README+1−1
@@ -323,7 +323,7 @@ General writer options
323323`--toc-depth=`*NUMBER*
324324: Specify the number of section levels to include in the table
325325 of contents. The default is 3 (which means that level 1, 2, and 3
326− headers will be listed in the contents). Implies `--toc`.
326+ headers will be listed in the contents).
327327
328328`--no-highlight`
329329: Disables syntax highlighting for code blocks and inlines, even when
pandoc.hs+1−2
@@ -360,8 +360,7 @@ options =
360360 (\arg opt -> do
361361 case safeRead arg of
362362 Just t | t >= 1 && t <= 6 ->
363− return opt { optTOCDepth = t,
364− optTableOfContents = True }
363+ return opt { optTOCDepth = t }
365364 _ -> err 57 $
366365 "TOC level must be a number between 1 and 6")
367366 "NUMBER")