aboutsummaryrefslogtreecommitdiff
path: root/test/command/citeproc-author-in-text-suffix.md
diff options
context:
space:
mode:
authorJohn MacFarlane <jgm@berkeley.edu>2020-11-15 17:46:24 -0800
committerJohn MacFarlane <jgm@berkeley.edu>2020-11-15 17:51:03 -0800
commitd7f905fb63e7cef83920bdb5621029f833538014 (patch)
tree3419e228a6fea11fda7ba00f1cba1f97a28e0a36 /test/command/citeproc-author-in-text-suffix.md
parentf8225140a58fa53d5c45ec644b8d5add342ced75 (diff)
downloadpandoc-d7f905fb63e7cef83920bdb5621029f833538014.tar.gz
Markdown reader: fix detection of locators following in-text citations.
Prevously, if we had `@foo [p. 33; @bar]`, the `p. 33` would be incorrectly parsed as a prefix of `@bar` rather than a suffix of `@foo`.
Diffstat (limited to 'test/command/citeproc-author-in-text-suffix.md')
-rw-r--r--test/command/citeproc-author-in-text-suffix.md6
1 files changed, 6 insertions, 0 deletions
diff --git a/test/command/citeproc-author-in-text-suffix.md b/test/command/citeproc-author-in-text-suffix.md
new file mode 100644
index 000000000..b55502053
--- /dev/null
+++ b/test/command/citeproc-author-in-text-suffix.md
@@ -0,0 +1,6 @@
+```
+% pandoc -t native
+@a [p. 33; @b]
+^D
+[Para [Cite [Citation {citationId = "a", citationPrefix = [], citationSuffix = [Str "p.\160\&33"], citationMode = AuthorInText, citationNoteNum = 1, citationHash = 0},Citation {citationId = "b", citationPrefix = [], citationSuffix = [], citationMode = NormalCitation, citationNoteNum = 1, citationHash = 0}] [Str "@a",Space,Str "[p.",Space,Str "33;",Space,Str "@b]"]]]
+```