From d7f905fb63e7cef83920bdb5621029f833538014 Mon Sep 17 00:00:00 2001 From: John MacFarlane Date: Sun, 15 Nov 2020 17:46:24 -0800 Subject: 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`. --- test/command/citeproc-author-in-text-suffix.md | 6 ++++++ 1 file changed, 6 insertions(+) create mode 100644 test/command/citeproc-author-in-text-suffix.md (limited to 'test/command/citeproc-author-in-text-suffix.md') 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]"]]] +``` -- cgit v1.2.3