As John Smith [-@smith2008a; -@smith2008b] mentioned repeatedly, everything is good. However, in @smith2008b he lists some exceptions, which he doesn't mention in @smith2008a.
Output:
As John Smith (2008b, 2008a) mentioned repeatedly, everything is good. How-
ever, in Smith (2008a) he lists some exceptions, which he doesn’t mention in
Smith (2008b).
References
Smith, J. 2008a. “Has Life Ever Been so Good?” In On the Goodness of Life,
edited by D. Red and H. Stevenson, 103–34. Heidelberg: edition forum.
———. 2008b. Life Is Good. Cambridge: Cambridge University Press.
I vaguely remember that this problem was absent in an older version of Pandoc (2.9.2.1 with pandoc-citeproc 0.17) in my Debian Bullseye, which I used to produce the initial version of the document in question.
Would much appreciate any suggestions!