aboutsummaryrefslogtreecommitdiff
path: root/src/Text/Pandoc/Readers
diff options
context:
space:
mode:
authorIgor Pashev <pashev.igor@gmail.com>2021-04-22 20:30:35 +0200
committerIgor Pashev <pashev.igor@gmail.com>2021-04-22 20:49:27 +0200
commit113479feb55e555a6a114cf6878f9a24c48b3347 (patch)
tree20d120caeea8f32e0ee94a04f415c30439a826f4 /src/Text/Pandoc/Readers
parentd4710c262ffd694c25e2f9f40da80a621615d701 (diff)
downloadpandoc-113479feb55e555a6a114cf6878f9a24c48b3347.tar.gz
LaTeX->HTML: Automatically generate the TOC
Diffstat (limited to 'src/Text/Pandoc/Readers')
-rw-r--r--src/Text/Pandoc/Readers/LaTeX.hs1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/Text/Pandoc/Readers/LaTeX.hs b/src/Text/Pandoc/Readers/LaTeX.hs
index 493b8abac..7b942aed9 100644
--- a/src/Text/Pandoc/Readers/LaTeX.hs
+++ b/src/Text/Pandoc/Readers/LaTeX.hs
@@ -1549,6 +1549,7 @@ blockCommands = M.fromList
<|> (grouped block >>= addMeta "title")))
, ("subtitle", mempty <$ (skipopts *> tok >>= addMeta "subtitle"))
, ("author", mempty <$ (skipopts *> authors))
+ , ("tableofcontents", mempty <$ (addMeta "tableOfContents" True))
-- -- in letter class, temp. store address & sig as title, author
, ("address", mempty <$ (skipopts *> tok >>= addMeta "address"))
, ("signature", mempty <$ (skipopts *> authors))