diff options
author | Igor Pashev <pashev.igor@gmail.com> | 2021-04-22 20:30:35 +0200 |
---|---|---|
committer | Igor Pashev <pashev.igor@gmail.com> | 2021-04-22 20:49:27 +0200 |
commit | 113479feb55e555a6a114cf6878f9a24c48b3347 (patch) | |
tree | 20d120caeea8f32e0ee94a04f415c30439a826f4 /src/Text/Pandoc/Readers | |
parent | d4710c262ffd694c25e2f9f40da80a621615d701 (diff) | |
download | pandoc-113479feb55e555a6a114cf6878f9a24c48b3347.tar.gz |
LaTeX->HTML: Automatically generate the TOC
Diffstat (limited to 'src/Text/Pandoc/Readers')
-rw-r--r-- | src/Text/Pandoc/Readers/LaTeX.hs | 1 |
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)) |