diff --git a/cabal.project b/cabal.project
index 1caf8d79d398..155f0942e0c9 100644
--- a/cabal.project
+++ b/cabal.project
@@ -21,3 +21,9 @@ source-repository-package
   type: git
   location: https://github.com/pandoc/pandoc-lua-marshal.git
   tag: 2dc58d431bb3e4d55999db03c470fbf32970b3d5
+
+source-repository-package
+  type: git
+  location: https://github.com/pandoc/commonmark-hs.git
+  tag: 7950d58dd270ec1576671feb96408bfb0b0fcfdb
+  subdir: commonmark-extensions
diff --git a/stack.yaml b/stack.yaml
index f7236b726380..82572e26501a 100644
--- a/stack.yaml
+++ b/stack.yaml
@@ -28,6 +28,10 @@ extra-deps:
   commit: a05431fd3ee218e42ece855ea25a038c23a589c7
 - git: https://github.com/pandoc/pandoc-lua-marshal
   commit: 2dc58d431bb3e4d55999db03c470fbf32970b3d5
+- git: https://github.com/pandoc/commonmark-hs.git
+  commit: 7950d58dd270ec1576671feb96408bfb0b0fcfdb
+  subdirs: [commonmark-extensions]
+
 ghc-options:
    "$locals": -fhide-source-paths -Wno-missing-home-modules
 resolver: lts-22.33