aboutsummaryrefslogtreecommitdiff
path: root/test/command
diff options
context:
space:
mode:
authorJohn MacFarlane <jgm@berkeley.edu>2020-10-06 22:28:22 -0700
committerJohn MacFarlane <jgm@berkeley.edu>2020-10-06 22:29:25 -0700
commitfd3809c33f663627f43168d347c7f2690a74b56f (patch)
treea4428a26bd5799b628685172939160fb24117677 /test/command
parenteda5540719e9771b48f15aa7f431033163e1f161 (diff)
downloadpandoc-fd3809c33f663627f43168d347c7f2690a74b56f.tar.gz
Unescape entities in writing CSL JSON.
The renderCslJson function escapes `<`, `>`, and `&` as entities. This is appropriate when generating HTML, but in CSL JSON these are supposed to appear unescaped. Closes jgm/citeproc#17.
Diffstat (limited to 'test/command')
-rw-r--r--test/command/citeproc-17.md17
1 files changed, 17 insertions, 0 deletions
diff --git a/test/command/citeproc-17.md b/test/command/citeproc-17.md
new file mode 100644
index 000000000..d80550f81
--- /dev/null
+++ b/test/command/citeproc-17.md
@@ -0,0 +1,17 @@
+```
+% pandoc -t csljson
+---
+references:
+- id: foo
+ type: book
+ title: "Hi & Low"
+...
+^D
+[
+ {
+ "id": "foo",
+ "title": "Hi & Low",
+ "type": "book"
+ }
+]
+```