From 4c6af94f1c1f9977aa3bcd683cef940bb9caddd0 Mon Sep 17 00:00:00 2001
From: John MacFarlane <jgm@berkeley.edu>
Date: Tue, 17 Aug 2021 14:30:17 -0700
Subject: [PATCH] Use released citeproc 0.5.

---
 cabal.project | 4 ----
 pandoc.cabal  | 2 +-
 stack.yaml    | 4 +---
 3 files changed, 2 insertions(+), 8 deletions(-)

diff --git a/cabal.project b/cabal.project
index 401992868..26373c616 100644
--- a/cabal.project
+++ b/cabal.project
@@ -2,7 +2,3 @@ packages: pandoc.cabal
 tests: True
 flags: +embed_data_files
 
-source-repository-package
-  type: git
-  location: https://github.com/jgm/citeproc.git
-  tag: 8d03cb722fac3ea8f17f432ac20abe35361df551
diff --git a/pandoc.cabal b/pandoc.cabal
index f4a173f59..fb7da0a05 100644
--- a/pandoc.cabal
+++ b/pandoc.cabal
@@ -452,7 +452,7 @@ library
                  blaze-markup          >= 0.8      && < 0.9,
                  bytestring            >= 0.9      && < 0.12,
                  case-insensitive      >= 1.2      && < 1.3,
-                 citeproc              >= 0.4.1    && < 0.4.2,
+                 citeproc              >= 0.5      && < 0.6,
                  commonmark            >= 0.2.1    && < 0.3,
                  commonmark-extensions >= 0.2.1.2  && < 0.3,
                  commonmark-pandoc     >= 0.2.1.1  && < 0.3,
diff --git a/stack.yaml b/stack.yaml
index ce58cf732..a8df254d7 100644
--- a/stack.yaml
+++ b/stack.yaml
@@ -13,9 +13,7 @@ extra-deps:
 - skylighting-0.11
 - doctemplates-0.10
 - texmath-0.12.3.1
-# - citeproc-0.4.1
-- git: https://github.com/jgm/citeproc.git
-  commit: 8d03cb722fac3ea8f17f432ac20abe35361df551
+- citeproc-0.5
 ghc-options:
    "$locals": -fhide-source-paths -Wno-missing-home-modules
 resolver: lts-18.0