git.iko.soy/typeable/pandoc
on master help sign in
LaTeX reader: allow optional arguments on `\footnote`.

Closes #4062.

commit51897937cd07a066df656451068ef56d13b4edc4 authorJohn MacFarlane <jgm@berkeley.edu> dateMon 13 Nov 2017, 21:19 (9 years ago) parent8d6e0e5
2 files changed+8−2
src/Text/Pandoc/Readers/LaTeX.hs+2−2 test/command/4062.md+6
src/Text/Pandoc/Readers/LaTeX.hs+2−2
@@ -1337,8 +1337,8 @@ inlineCommands = M.union inlineLanguageCommands $ M.fromList $
13371337 , ("bar", lit "|")
13381338 , ("textless", lit "<")
13391339 , ("textgreater", lit ">")
1340− , ("thanks", note <$> grouped block)
1341− , ("footnote", note <$> grouped block)
1340+ , ("thanks", skipopts >> note <$> grouped block)
1341+ , ("footnote", skipopts >> note <$> grouped block)
13421342 , ("verb", doverb)
13431343 , ("lstinline", dolstinline)
13441344 , ("Verb", doverb)
test/command/4062.mdnew file+6
@@ -0,0 +1,6 @@
1+```
2+% pandoc -t latex
3+Sentence blah.\footnote[][-.5in]{I'm a footnote}
4+^D
5+Sentence blah.\footnote[][-.5in]{I'm a footnote}
6+```