aboutsummaryrefslogtreecommitdiff
path: root/test/command/7324.md
diff options
context:
space:
mode:
authorJohn MacFarlane <jgm@berkeley.edu>2021-05-27 18:28:52 -0700
committerJohn MacFarlane <jgm@berkeley.edu>2021-05-27 18:28:52 -0700
commit4842c5fb828c3c34d816fa7bccd4656857742a0b (patch)
tree9e1a44d94a1b59bdec6d4655568468741b45df7f /test/command/7324.md
parent4b16d181e7219ed161a0e03c0c5ee9dec4b526b4 (diff)
downloadpandoc-4842c5fb828c3c34d816fa7bccd4656857742a0b.tar.gz
Two citeproc locator/suffix improvements:
- Recognize locators spelled with a capital letter. Closes #7323. - Add a comma and a space in front of the suffix if it doesn't start with space or punctuation. Closes #7324.
Diffstat (limited to 'test/command/7324.md')
-rw-r--r--test/command/7324.md25
1 files changed, 25 insertions, 0 deletions
diff --git a/test/command/7324.md b/test/command/7324.md
new file mode 100644
index 000000000..fae1b9923
--- /dev/null
+++ b/test/command/7324.md
@@ -0,0 +1,25 @@
+```
+% pandoc --citeproc -t plain
+---
+references:
+- id: smith
+ author: John Smith
+ issued: 2019
+ title: Insects
+ type: book
+...
+
+@smith [, among others]
+
+@smith [ among others]
+
+@smith [among others]
+^D
+John Smith (2019, among others)
+
+John Smith (2019 among others)
+
+John Smith (2019, among others)
+
+John Smith. 2019. Insects.
+```