LaTeX reader: support \endinput
. Closes #5233.
This commit is contained in:
parent
3707bed4c1
commit
5ddd7b121e
2 changed files with 10 additions and 0 deletions
|
@ -1765,6 +1765,7 @@ blockCommands = M.fromList
|
|||
addMeta "bibliography" . splitBibs . toksToString))
|
||||
, ("addbibresource", mempty <$ (skipopts *> braced >>=
|
||||
addMeta "bibliography" . splitBibs . toksToString))
|
||||
, ("endinput", mempty <$ skipMany tok)
|
||||
-- includes
|
||||
, ("lstinputlisting", inputListing)
|
||||
, ("inputminted", inputMinted)
|
||||
|
|
9
test/command/5233.md
Normal file
9
test/command/5233.md
Normal file
|
@ -0,0 +1,9 @@
|
|||
```
|
||||
% pandoc -f latex -t plain
|
||||
foo
|
||||
\endinput
|
||||
bar
|
||||
^D
|
||||
foo
|
||||
```
|
||||
|
Loading…
Add table
Reference in a new issue