diff options
author | Simon Schuster <git@rationality.eu> | 2021-08-20 16:41:50 +0200 |
---|---|---|
committer | John MacFarlane <jgm@berkeley.edu> | 2021-08-21 18:08:27 -0700 |
commit | 591cdca38b8af5a50a4e121b34d87f3c9bca5844 (patch) | |
tree | 2ea7fa61adc1ebe2de2eafe9ded80a39e1694787 /test | |
parent | d05460d00d7c9af3b4913f1760ea385a7d855d84 (diff) | |
download | pandoc-591cdca38b8af5a50a4e121b34d87f3c9bca5844.tar.gz |
LaTeX-parser: restrict \endinput to current file
Diffstat (limited to 'test')
-rw-r--r-- | test/command/bar-endinput.tex | 3 | ||||
-rw-r--r-- | test/command/input-with-endinput.md | 14 |
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"]] +``` |