LaTeX-parser: restrict \endinput to current file

This commit is contained in:
Simon Schuster
2021-08-20 16:41:50 +02:00
committed by John MacFarlane
parent d05460d00d
commit 591cdca38b
5 changed files with 27 additions and 1 deletions
+3
View File
@@ -0,0 +1,3 @@
\emph{hi there}
\endinput
\emph{invisible}
+14
View File
@@ -0,0 +1,14 @@
```
% pandoc --from=latex -t native
\begin{document}
Visible
\include{command/bar-endinput}
Visible
\end{document}
^D
[Para [Str "Visible"]
,Para [Emph [Str "hi",Space,Str "there"]]
,Para [Str "Visible"]]
```