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

commit1d17dbd3ae1e3565c62bc2660cf45b2c266d8165 authorJohn MacFarlane <jgm@berkeley.edu> dateMon 27 Feb 2017, 14:16 (10 years ago) parentd30883d
1 file changed+2
src/Text/Pandoc/Readers/LaTeX.hs+2
src/Text/Pandoc/Readers/LaTeX.hs+2
@@ -337,6 +337,8 @@ blockCommands = M.fromList $
337337 , ("address", mempty <$ (skipopts *> tok >>= addMeta "address"))
338338 , ("signature", mempty <$ (skipopts *> authors))
339339 , ("date", mempty <$ (skipopts *> tok >>= addMeta "date"))
340+ -- Koma-script metadata commands
341+ , ("dedication", mempty <$ (skipopts *> tok >>= addMeta "dedication"))
340342 -- sectioning
341343 , ("chapter", updateState (\s -> s{ stateHasChapters = True })
342344 *> section nullAttr 0)