mirror of
https://github.com/jgm/pandoc.git
synced 2026-09-01 15:38:09 +08:00
LaTeX-parser: restrict \endinput to current file
This commit is contained in:
committed by
John MacFarlane
parent
d05460d00d
commit
591cdca38b
@@ -0,0 +1,3 @@
|
||||
\emph{hi there}
|
||||
\endinput
|
||||
\emph{invisible}
|
||||
@@ -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"]]
|
||||
```
|
||||
Reference in New Issue
Block a user