aboutsummaryrefslogtreecommitdiff
path: root/src/Text
diff options
context:
space:
mode:
authorJohn MacFarlane <jgm@berkeley.edu>2017-02-27 14:16:05 +0100
committerJohn MacFarlane <jgm@berkeley.edu>2017-02-27 14:16:05 +0100
commit1d17dbd3ae1e3565c62bc2660cf45b2c266d8165 (patch)
tree48ccffc5478b612fee7662fb6e5e9651b67a5cb1 /src/Text
parentd30883d49eedbdd50ac5f259d6d39382fb33dde6 (diff)
downloadpandoc-1d17dbd3ae1e3565c62bc2660cf45b2c266d8165.tar.gz
LaTeX reader: Handle komascript `\dedication`.
It now adds a `dedication` field to metadata. It is up to the user to supply a template that uses this variable. Closes #1845.
Diffstat (limited to 'src/Text')
-rw-r--r--src/Text/Pandoc/Readers/LaTeX.hs2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/Text/Pandoc/Readers/LaTeX.hs b/src/Text/Pandoc/Readers/LaTeX.hs
index bbbd1fee0..2836ff4cc 100644
--- a/src/Text/Pandoc/Readers/LaTeX.hs
+++ b/src/Text/Pandoc/Readers/LaTeX.hs
@@ -337,6 +337,8 @@ blockCommands = M.fromList $
, ("address", mempty <$ (skipopts *> tok >>= addMeta "address"))
, ("signature", mempty <$ (skipopts *> authors))
, ("date", mempty <$ (skipopts *> tok >>= addMeta "date"))
+ -- Koma-script metadata commands
+ , ("dedication", mempty <$ (skipopts *> tok >>= addMeta "dedication"))
-- sectioning
, ("chapter", updateState (\s -> s{ stateHasChapters = True })
*> section nullAttr 0)