aboutsummaryrefslogtreecommitdiff
path: root/test/command
diff options
context:
space:
mode:
authorJohn MacFarlane <jgm@berkeley.edu>2020-11-20 13:39:00 -0800
committerJohn MacFarlane <jgm@berkeley.edu>2020-11-20 13:40:26 -0800
commit9a4097640f052468054105cde8ef342ac8a1db30 (patch)
tree5318d7e588b1b7867c280fd8088aeee3346edbb5 /test/command
parent797db8d30631cbd704575ee11d3bdda5bf57270f (diff)
downloadpandoc-9a4097640f052468054105cde8ef342ac8a1db30.tar.gz
Improve LaTeX option parsing...
in cases where we run into trouble parsing inlines til the closing `]`, e.g. quotes, we return a plain string with the option contents. Previously we mistakenly included the brackets in this string. Closes #6869.
Diffstat (limited to 'test/command')
-rw-r--r--test/command/6869.md6
1 files changed, 6 insertions, 0 deletions
diff --git a/test/command/6869.md b/test/command/6869.md
new file mode 100644
index 000000000..cd8ff9ff4
--- /dev/null
+++ b/test/command/6869.md
@@ -0,0 +1,6 @@
+```
+% pandoc -f latex -t native
+\cite[„Aber“]{key}
+^D
+[Para [Cite [Citation {citationId = "key", citationPrefix = [], citationSuffix = [Str "\8222Aber\8220"], citationMode = NormalCitation, citationNoteNum = 0, citationHash = 0}] [RawInline (Format "latex") "\\cite[\8222Aber\8220]{key}"]]]
+```