From 517c55dae7a33a858f73609a90972f5da05dd1b1 Mon Sep 17 00:00:00 2001 From: John MacFarlane <jgm@berkeley.edu> Date: Tue, 27 Oct 2020 22:21:03 -0700 Subject: [PATCH] Use latest citeproc. Closes #6783. --- cabal.project | 8 ++++---- stack.yaml | 3 ++- test/command/6783.md | 26 ++++++++++++++++++++++++++ 3 files changed, 32 insertions(+), 5 deletions(-) create mode 100644 test/command/6783.md diff --git a/cabal.project b/cabal.project index 96e56de84..d76e01a1f 100644 --- a/cabal.project +++ b/cabal.project @@ -4,8 +4,8 @@ package pandoc flags: +embed_data_files -trypandoc ghc-options: -j +RTS -A64m -RTS --- source-repository-package --- type: git --- location: https://github.com/jgm/citeproc --- tag: 0.1.0.3 +source-repository-package + type: git + location: https://github.com/jgm/citeproc + tag: ac57c6ceb8fe6583921c5e3f3a3838401191b97c diff --git a/stack.yaml b/stack.yaml index 87847d0ac..30a2b6b71 100644 --- a/stack.yaml +++ b/stack.yaml @@ -22,7 +22,8 @@ extra-deps: - commonmark-0.1.0.2 - commonmark-extensions-0.2.0.1 - commonmark-pandoc-0.2.0.1 -- citeproc-0.1.0.3 +- git: https://github.com/jgm/citeproc + commit: ac57c6ceb8fe6583921c5e3f3a3838401191b97c ghc-options: "$locals": -fhide-source-paths -Wno-missing-home-modules diff --git a/test/command/6783.md b/test/command/6783.md new file mode 100644 index 000000000..bbb98ce18 --- /dev/null +++ b/test/command/6783.md @@ -0,0 +1,26 @@ +``` +% pandoc -f markdown -t plain -s --citeproc +--- +references: +- author: + - family: Jupyter + given: Project + container-title: Proceedings of the 17th Python in Science Conference + id: 'ref-1' + issued: 2018 + title: 'Binder 2.0 - Reproducible, interactive, sharable environments for science at scale' + type: 'paper-conference' + volume: +... + +This is a test[@ref-1]. +^D + + +This is a test(Jupyter 2018). + +Jupyter, Project. 2018. “Binder 2.0 - Reproducible, Interactive, +Sharable Environments for Science at Scale.” In Proceedings of the 17th +Python in Science Conference. +``` +