aboutsummaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
authorJohn MacFarlane <jgm@berkeley.edu>2021-07-11 13:01:45 -0700
committerJohn MacFarlane <jgm@berkeley.edu>2021-07-11 13:50:28 -0700
commitac0a9da6d85e9b7a73973a20019caa324b2c1aff (patch)
tree947537c11f2a656d29fa898b845fa9454257a606 /test
parent477a67061f06827b7e807319404cc277a417e9d0 (diff)
downloadpandoc-ac0a9da6d85e9b7a73973a20019caa324b2c1aff.tar.gz
Improved parsing of raw LaTeX from Text streams (rawLaTeXParser).
We now use source positions from the token stream to tell us how much of the text stream to consume. Getting this to work required a few other changes to make token source positions accurate. Closes #7434.
Diffstat (limited to 'test')
-rw-r--r--test/command/7434.md15
1 files changed, 15 insertions, 0 deletions
diff --git a/test/command/7434.md b/test/command/7434.md
new file mode 100644
index 000000000..be8732bc2
--- /dev/null
+++ b/test/command/7434.md
@@ -0,0 +1,15 @@
+```
+% pandoc -f markdown -t native
+\begin{proof}
+\newcommand{\x}{\left.\right.}
+\x
+\end{proof}
+
+1234567890abcdefghi
+
+[\*\a](x)
+^D
+[RawBlock (Format "tex") "\\begin{proof}\n\\newcommand{\\x}{\\left.\\right.}\n\\left.\\right.\n\\end{proof}"
+,Para [Str "1234567890abcdefghi"]
+,Para [Link ("",[],[]) [Str "*",RawInline (Format "tex") "\\a"] ("x","")]]
+```