LaTeX reader: allow optional arguments on \footnote.

Closes #4062.
This commit is contained in:
John MacFarlane
2017-11-13 21:19:38 -08:00
parent 8d6e0e516a
commit 51897937cd
2 changed files with 8 additions and 2 deletions
+2 -2
View File
@@ -1337,8 +1337,8 @@ inlineCommands = M.union inlineLanguageCommands $ M.fromList $
, ("bar", lit "|")
, ("textless", lit "<")
, ("textgreater", lit ">")
, ("thanks", note <$> grouped block)
, ("footnote", note <$> grouped block)
, ("thanks", skipopts >> note <$> grouped block)
, ("footnote", skipopts >> note <$> grouped block)
, ("verb", doverb)
, ("lstinline", dolstinline)
, ("Verb", doverb)
+6
View File
@@ -0,0 +1,6 @@
```
% pandoc -t latex
Sentence blah.\footnote[][-.5in]{I'm a footnote}
^D
Sentence blah.\footnote[][-.5in]{I'm a footnote}
```