From 591cdca38b8af5a50a4e121b34d87f3c9bca5844 Mon Sep 17 00:00:00 2001 From: Simon Schuster Date: Fri, 20 Aug 2021 16:41:50 +0200 Subject: LaTeX-parser: restrict \endinput to current file --- test/command/bar-endinput.tex | 3 +++ test/command/input-with-endinput.md | 14 ++++++++++++++ 2 files changed, 17 insertions(+) create mode 100644 test/command/bar-endinput.tex create mode 100644 test/command/input-with-endinput.md (limited to 'test') diff --git a/test/command/bar-endinput.tex b/test/command/bar-endinput.tex new file mode 100644 index 000000000..2f3f9bd6c --- /dev/null +++ b/test/command/bar-endinput.tex @@ -0,0 +1,3 @@ +\emph{hi there} +\endinput +\emph{invisible} diff --git a/test/command/input-with-endinput.md b/test/command/input-with-endinput.md new file mode 100644 index 000000000..df0475a15 --- /dev/null +++ b/test/command/input-with-endinput.md @@ -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"]] +``` -- cgit v1.2.3