From 9a4097640f052468054105cde8ef342ac8a1db30 Mon Sep 17 00:00:00 2001 From: John MacFarlane Date: Fri, 20 Nov 2020 13:39:00 -0800 Subject: 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. --- test/command/6869.md | 6 ++++++ 1 file changed, 6 insertions(+) create mode 100644 test/command/6869.md (limited to 'test/command/6869.md') 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}"]]] +``` -- cgit v1.2.3