git.iko.soy/typeable/pandoc
on master help sign in
LaTeX reader: allow block content in \title{}.

Closes #2001.

commit348b383731bdb254ea7bced89ce61ed40c549b8e authorJohn MacFarlane <jgm@berkeley.edu> dateSat 14 Mar 2015, 23:11 (12 years ago) parent2e1e763
1 file changed+3−1
src/Text/Pandoc/Readers/LaTeX.hs+3−1
src/Text/Pandoc/Readers/LaTeX.hs+3−1
@@ -271,7 +271,9 @@ ignoreBlocks name = (name, doraw <|> (mempty <$ optargs))
271271blockCommands :: M.Map String (LP Blocks)
272272blockCommands = M.fromList $
273273 [ ("par", mempty <$ skipopts)
274− , ("title", mempty <$ (skipopts *> tok >>= addMeta "title"))
274+ , ("title", mempty <$ (skipopts *>
275+ (grouped inline >>= addMeta "title")
276+ <|> (grouped block >>= addMeta "title")))
275277 , ("subtitle", mempty <$ (skipopts *> tok >>= addMeta "subtitle"))
276278 , ("author", mempty <$ (skipopts *> authors))
277279 -- -- in letter class, temp. store address & sig as title, author