aboutsummaryrefslogtreecommitdiff
path: root/test/command
diff options
context:
space:
mode:
authorJohn MacFarlane <jgm@berkeley.edu>2021-12-13 12:10:13 -0800
committerJohn MacFarlane <jgm@berkeley.edu>2021-12-13 12:11:58 -0800
commit9f089aa2863afdbfacd8a43dc85f0b8c53463bb8 (patch)
treea3c508c1fe74c753ebebc35144ea523ca793169f /test/command
parent2015c9070d1389b407711cfd699e529fe14bffcd (diff)
downloadpandoc-9f089aa2863afdbfacd8a43dc85f0b8c53463bb8.tar.gz
Org writer: add tests for org-cite citations, and improve support.
Diffstat (limited to 'test/command')
-rw-r--r--test/command/7329.md44
1 files changed, 44 insertions, 0 deletions
diff --git a/test/command/7329.md b/test/command/7329.md
new file mode 100644
index 000000000..565241db8
--- /dev/null
+++ b/test/command/7329.md
@@ -0,0 +1,44 @@
+```
+% pandoc -f markdown -t org
+- @item1
+- @item1 [p. 12]
+- @item1 [p.12; see also @item2]
+- [@item1]
+- [-@item1]
+- [see @item1 p. 12]
+- [see @item1, p. 12]
+- [see @item1, p. 12 and *passim*]
+- [@item1;@item2]
+- [see @item1; @item2]
+^D
+- [cite/t:@item1]
+- [cite/t:@item1 p. 12]
+- [cite/t:@item1 p.12; see also @item2]
+- [cite:@item1]
+- [cite/na:@item1]
+- [cite:see @item1 p. 12]
+- [cite:see @item1 p. 12]
+- [cite:see @item1 p. 12 and /passim/]
+- [cite:@item1; @item2]
+- [cite:see @item1; @item2]
+```
+
+```
+% pandoc -f markdown -t org -C --bibliography command/biblio.bib
+- [@item1]
+^D
+- [cite:@item1]
+```
+
+
+```
+% pandoc -f markdown -t org-citations -C --bibliography command/biblio.bib
+[@item1]
+^D
+(Doe 2005)
+
+<<refs>>
+
+<<ref-item1>>
+Doe, John. 2005. /First Book/. Cambridge: Cambridge University Press.
+```