aboutsummaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
authorJohn MacFarlane <jgm@berkeley.edu>2010-11-18 13:22:20 -0800
committerJohn MacFarlane <jgm@berkeley.edu>2010-11-18 13:22:20 -0800
commitf3bb3c1ff1c85ea3bc9132b4c890905a9af20c3a (patch)
tree0d3d0167c4298a0896cdba1f7902d00908cfbddf /tests
parentaaf7de0ddaea292ba4e869a6f0fa5adaaf02b813 (diff)
downloadpandoc-f3bb3c1ff1c85ea3bc9132b4c890905a9af20c3a.tar.gz
Markdown citation parser improvements and test updates.
Now we handle a suffix after a bare locator, e.g. @item1 [p. 30, suffix] The suffix now includes any punctuation that introduces it. A few tests fail because of problems with citeproc (extra space before the suffix, missing space after comma separating multiple page ranges in the locator).
Diffstat (limited to 'tests')
-rw-r--r--tests/markdown-citations.plain8
-rw-r--r--tests/markdown-citations.txt4
2 files changed, 9 insertions, 3 deletions
diff --git a/tests/markdown-citations.plain b/tests/markdown-citations.plain
index b809842be..dd5d23efc 100644
--- a/tests/markdown-citations.plain
+++ b/tests/markdown-citations.plain
@@ -5,12 +5,14 @@ Pandoc with citeproc-hs
@nonexistent
-Doe (2005) says blah. Doe (2005, 30) says blah. Doe
-(2005; 2006, 30; see also Doe and Roe 2007) says blah.
+Doe (2005) says blah. Doe (2005, 30) says blah. Doe (2005, 30, suffix)
+says blah. Doe (2005; 2006, 30; see also Doe and Roe 2007) says blah.
In a note.[^1] A citation group
(see Doe 2005, 34-35; also Doe and Roe 2007, chap. 3). Another one
-(see Doe 2005, 34-35). And another one in a note.[^2]
+(see Doe 2005, 34-35). And another one in a note.[^2] Citation with
+a suffix and locator (Doe 2005, 33, 35-37, and nowhere else).
+Citation with suffix only (Doe 2005, and nowhere else).
Now some modifiers.[^3]
diff --git a/tests/markdown-citations.txt b/tests/markdown-citations.txt
index 9840832ce..c54a41304 100644
--- a/tests/markdown-citations.txt
+++ b/tests/markdown-citations.txt
@@ -6,11 +6,15 @@
@item1 says blah.
@item1 [p. 30] says blah.
+@item1 [p. 30, with suffix] says blah.
@item1 [-@item2 p. 30; see also @item3] says blah.
In a note.[^1] A citation group [see
@item1 p. 34-35; also @item3 chap. 3]. Another one [see
@item1 p. 34-35]. And another one in a note.[^2]
+Citation with a suffix and locator [@item1 pp. 33, 35-37,
+and nowhere else]. Citation with suffix only
+[@item1, and nowhere else].
Now some modifiers.[^3]