git.iko.soy/typeable/pandoc
on master help sign in
Use latest citeproc.

This fixes a problem with author-in-text citations for references including both an author and an editor. Previously, both were included in the text, but only the author should be. Closes #6765. Added a test.

commitb87679391085c077ca0b1f5dcdc93e40ba1499c6 authorJohn MacFarlane <jgm@berkeley.edu> dateWed 21 Oct 2020, 23:14 (6 years ago) parentf9c6167
3 files changed+35−2
cabal.project+2−1 stack.yaml+2−1 test/command/6765.md+31
cabal.project+2−1
@@ -7,4 +7,5 @@ package pandoc
77source-repository-package
88 type: git
99 location: https://github.com/jgm/citeproc
10− tag: 0.1.0.2
10+ tag: 3230fb6fa1beff3e27389be20217a31d3c1207e9
11+
stack.yaml+2−1
@@ -22,7 +22,8 @@ extra-deps:
2222- commonmark-0.1.0.2
2323- commonmark-extensions-0.2.0.1
2424- commonmark-pandoc-0.2.0.1
25−- citeproc-0.1.0.2
25+- git: https://github.com/jgm/citeproc
26+ commit: 3230fb6fa1beff3e27389be20217a31d3c1207e9
2627
2728ghc-options:
2829 "$locals": -fhide-source-paths -Wno-missing-home-modules
test/command/6765.mdnew file+31
@@ -0,0 +1,31 @@
1+```
2+% pandoc --citeproc -t plain
3+@book_chapter_1 [55] says blah.
4+
5+---
6+csl: command/chicago-fullnote-bibliography.csl
7+references:
8+- id: book_chapter_1
9+ author:
10+ - family: Author
11+ given: Ann
12+ container-title: A book
13+ editor:
14+ - family: Editor
15+ given: Edward
16+ issued: 2014
17+ page: 48-67
18+ publisher: A publisher
19+ publisher-place: A place
20+ title: A book chapter
21+ type: chapter
22+...
23+^D
24+Ann Author[1] says blah.
25+
26+Author, Ann. “A Book Chapter.” In A Book, edited by Edward Editor,
27+48–67. A place: A publisher, 2014.
28+
29+[1] “A Book Chapter,” in A Book, ed. Edward Editor (A place: A
30+publisher, 2014), 55.
31+```