aboutsummaryrefslogtreecommitdiff
path: root/test/command/pandoc-citeproc-160.md
diff options
context:
space:
mode:
Diffstat (limited to 'test/command/pandoc-citeproc-160.md')
-rw-r--r--test/command/pandoc-citeproc-160.md46
1 files changed, 46 insertions, 0 deletions
diff --git a/test/command/pandoc-citeproc-160.md b/test/command/pandoc-citeproc-160.md
new file mode 100644
index 000000000..9f2a29e2c
--- /dev/null
+++ b/test/command/pandoc-citeproc-160.md
@@ -0,0 +1,46 @@
+```
+% pandoc --citeproc -t markdown-citations
+---
+csl: command/issue160.csl
+references:
+- author:
+ - family: Doe
+ given: Jane
+ citation-label: Jane11
+ id: item1
+ issued:
+ year: 2011
+ title: A book
+ type: book
+---
+
+No citation-label
+-----------------
+
+Foo [@item1].
+
+Expected
+--------
+
+> Foo \[Jane11\].
+>
+> \[Jane11\] Jane Doe. A book. 2011.
+^D
+No citation-label
+-----------------
+
+Foo \[Jane11\].
+
+Expected
+--------
+
+> Foo \[Jane11\].
+>
+> \[Jane11\] Jane Doe. A book. 2011.
+
+::: {#refs .references .csl-bib-body}
+::: {#ref-item1 .csl-entry}
+\[Jane11\] Jane Doe. A book. 2011.
+:::
+:::
+```