From 1de55ecbbdc694cc853ae707b8a1f7d65af9eefd Mon Sep 17 00:00:00 2001 From: John MacFarlane Date: Wed, 3 Jul 2013 12:47:35 -0700 Subject: `--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. --- pandoc.hs | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'pandoc.hs') 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") -- cgit v1.2.3