git.iko.soy/typeable/pandoc
on master help sign in
LaTeX reader: allow optional arguments on `\footnote`.
5189793John MacFarlane
src/Text/Pandoc/Readers/LaTeX.hs+2−2
@@ -1337,8 +1337,8 @@ inlineCommands = M.union inlineLanguageCommands $ M.fromList $
1337 , ("bar", lit "|")
1337 , ("bar", lit "|")
1338 , ("textless", lit "<")
1338 , ("textless", lit "<")
1339 , ("textgreater", lit ">")
1339 , ("textgreater", lit ">")
1340− , ("thanks", note <$> grouped block)
1340+ , ("thanks", skipopts >> note <$> grouped block)
1341− , ("footnote", note <$> grouped block)
1341+ , ("footnote", skipopts >> note <$> grouped block)
1342 , ("verb", doverb)
1342 , ("verb", doverb)
1343 , ("lstinline", dolstinline)
1343 , ("lstinline", dolstinline)
1344 , ("Verb", doverb)
1344 , ("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+```