diff --git a/pandoc.cabal b/pandoc.cabal
index c8343d16e..fb70a9de4 100644
--- a/pandoc.cabal
+++ b/pandoc.cabal
@@ -451,9 +451,9 @@ library
                  bytestring            >= 0.9      && < 0.12,
                  case-insensitive      >= 1.2      && < 1.3,
                  citeproc              >= 0.4      && < 0.4.1,
-                 commonmark            >= 0.1.1.3  && < 0.2,
-                 commonmark-extensions >= 0.2.0.4  && < 0.3,
-                 commonmark-pandoc     >= 0.2      && < 0.3,
+                 commonmark            >= 0.2      && < 0.3,
+                 commonmark-extensions >= 0.2.1    && < 0.3,
+                 commonmark-pandoc     >= 0.2.1    && < 0.3,
                  connection            >= 0.3.1,
                  containers            >= 0.4.2.1  && < 0.7,
                  data-default          >= 0.4      && < 0.8,
diff --git a/stack.yaml b/stack.yaml
index ea48fbb88..27c8c5f19 100644
--- a/stack.yaml
+++ b/stack.yaml
@@ -14,6 +14,9 @@ extra-deps:
 - random-1.2.0
 - unicode-collation-0.1.3
 - citeproc-0.4
+- commonmark-0.2
+- commonmark-extensions-0.2.1
+- commonmark-pandoc-0.2.1
 ghc-options:
    "$locals": -fhide-source-paths -Wno-missing-home-modules
 resolver: lts-17.12