aboutsummaryrefslogtreecommitdiff
path: root/test/command/6752.md
diff options
context:
space:
mode:
authorJohn MacFarlane <jgm@berkeley.edu>2020-10-15 17:41:13 -0700
committerJohn MacFarlane <jgm@berkeley.edu>2020-10-15 17:41:45 -0700
commiteb3307da4e53097da52997e276c08b188ed40960 (patch)
tree7b28e8ea2c64be6999f34ae10209b4c45954ab6f /test/command/6752.md
parent988d381aad150431f1b8b46349526fb5379e0fa0 (diff)
downloadpandoc-eb3307da4e53097da52997e276c08b188ed40960.tar.gz
Fix handling of xdata in bibtex/biblatex bibliographies.
Closes #6752.
Diffstat (limited to 'test/command/6752.md')
-rw-r--r--test/command/6752.md36
1 files changed, 36 insertions, 0 deletions
diff --git a/test/command/6752.md b/test/command/6752.md
new file mode 100644
index 000000000..b2d51d2ca
--- /dev/null
+++ b/test/command/6752.md
@@ -0,0 +1,36 @@
+```
+% pandoc -f biblatex -t csljson
+@xdata{XDPubAlfredAKnopf,
+    publisher   = {Alfred A.~Knopf},
+    address     = {New York, NY}
+}
+@book{Klinkenborg2012,
+    author      = {Verlyn Klinkenborg},
+    title       = {Several short sentences about writing},
+    date        = {2012},
+    xdata       = {XDPubAlfredAKnopf},
+}
+^D
+[
+ {
+ "author": [
+ {
+ "family": "Klinkenborg",
+ "given": "Verlyn"
+ }
+ ],
+ "id": "Klinkenborg2012",
+ "issued": {
+ "date-parts": [
+ [
+ 2012
+ ]
+ ]
+ },
+ "publisher": "Alfred A. Knopf",
+ "publisher-place": "New York, NY",
+ "title": "Several short sentences about writing",
+ "type": "book"
+ }
+]
+```