aboutsummaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
Diffstat (limited to 'test')
-rw-r--r--test/command/bar-endinput.tex3
-rw-r--r--test/command/input-with-endinput.md14
2 files changed, 17 insertions, 0 deletions
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"]]
+```