diff options
author | John MacFarlane <jgm@berkeley.edu> | 2021-05-27 18:28:52 -0700 |
---|---|---|
committer | John MacFarlane <jgm@berkeley.edu> | 2021-05-27 18:28:52 -0700 |
commit | 4842c5fb828c3c34d816fa7bccd4656857742a0b (patch) | |
tree | 9e1a44d94a1b59bdec6d4655568468741b45df7f /test | |
parent | 4b16d181e7219ed161a0e03c0c5ee9dec4b526b4 (diff) | |
download | pandoc-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')
-rw-r--r-- | test/command/7323.md | 29 | ||||
-rw-r--r-- | test/command/7324.md | 25 |
2 files changed, 54 insertions, 0 deletions
diff --git a/test/command/7323.md b/test/command/7323.md new file mode 100644 index 000000000..7de29cfe2 --- /dev/null +++ b/test/command/7323.md @@ -0,0 +1,29 @@ +``` +% pandoc --citeproc -t plain +--- +references: +- id: smith + author: John Smith + issued: 2019 + title: Insects + type: book +... + +@smith [chap. 6] + +@smith [chapter 6] + +@smith [Chap. 6] + +@smith [Chapter 6] +^D +John Smith (2019, chap. 6) + +John Smith (2019, chap. 6) + +John Smith (2019, chap. 6) + +John Smith (2019, chap. 6) + +John Smith. 2019. Insects. +``` 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. +``` |