diff --git a/cabal.project b/cabal.project
index fdd50eb84..f964bc50d 100644
--- a/cabal.project
+++ b/cabal.project
@@ -7,9 +7,13 @@ source-repository-package
   type: git
   location: https://github.com/jgm/citeproc.git
   tag: 32fcf268d8bac2825eddd3c51a9112112e5eaadb
-
 source-repository-package
   type: git
   location: https://github.com/jgm/commonmark-hs.git
-  tag: e114359f413b95ef0f4b3d78956a76fcb38a4b2f
+  tag: 3f7d9abcd5366576e308c1cd5dad91c7b4d4e31b
   subdir: commonmark
+source-repository-package
+  type: git
+  location: https://github.com/jgm/commonmark-hs.git
+  tag: 3f7d9abcd5366576e308c1cd5dad91c7b4d4e31b
+  subdir: commonmark-extensions
diff --git a/stack.yaml b/stack.yaml
index 8df7d0667..f8407095a 100644
--- a/stack.yaml
+++ b/stack.yaml
@@ -35,14 +35,13 @@ extra-deps:
 - unicode-transforms-0.4.0@rev:1
 - unicode-data-0.3.0
 - texmath-0.12.4
-- commonmark-extensions-0.2.3
 - commonmark-pandoc-0.2.1.2
 - ipynb-0.2
 - git: https://github.com/jgm/citeproc.git
   commit: 32fcf268d8bac2825eddd3c51a9112112e5eaadb
 - git: https://github.com/jgm/commonmark-hs.git
-  commit: e114359f413b95ef0f4b3d78956a76fcb38a4b2f
-  subdirs: [commonmark]
+  commit: 3f7d9abcd5366576e308c1cd5dad91c7b4d4e31b
+  subdirs: [commonmark, commonmark-extensions]
 ghc-options:
    "$locals": -fhide-source-paths -Wno-missing-home-modules
 resolver: lts-18.10