diff --git a/changelog.md b/changelog.md
--- a/changelog.md
+++ b/changelog.md
@@ -1,5 +1,9 @@
 # Changelog for commonmark-extensions
 
+## 0.2.7.3
+
+  * Depend on commonmark 0.3.1, for the `getPrecedingTokType` export.
+
 ## 0.2.7.2
 
   * Footnotes: memoize note rendering and detect reference cycles.
diff --git a/commonmark-extensions.cabal b/commonmark-extensions.cabal
--- a/commonmark-extensions.cabal
+++ b/commonmark-extensions.cabal
@@ -1,5 +1,5 @@
 name:           commonmark-extensions
-version:        0.2.7.2
+version:        0.2.7.3
 synopsis:       Pure Haskell commonmark parser.
 description:
    This library provides some useful extensions to core commonmark
@@ -60,7 +60,7 @@
     , transformers
     , filepath
     , network-uri
-    , commonmark >= 0.2.4.1 && < 0.4
+    , commonmark >= 0.3.1 && < 0.4
     -- for extensions:
     , emojis >= 0.1.4.1 && < 0.2
   exposed-modules:
@@ -101,7 +101,7 @@
   ghc-options: -threaded -rtsopts -with-rtsopts=-K40K
   build-depends:
       base >= 4.9 && <5
-    , commonmark >= 0.2.4.1 && < 0.4
+    , commonmark >= 0.3.1 && < 0.4
     , commonmark-extensions
     , text
     , tasty
@@ -114,7 +114,7 @@
   main-is:         benchmark.hs
   hs-source-dirs:  benchmark
   build-depends:
-       commonmark >= 0.2.4.1 && < 0.4
+       commonmark >= 0.3.1 && < 0.4
      , commonmark-extensions
      , base >= 4.9 && < 5
      , text
