diff --git a/cabal.project b/cabal.project
index 5402abd16..7e4d854b3 100644
--- a/cabal.project
+++ b/cabal.project
@@ -3,11 +3,6 @@ tests: True
 flags: +embed_data_files
 constraints: aeson >= 2.0.1.0
 
-source-repository-package
-  type: git
-  location: https://github.com/jgm/texmath.git
-  tag: 9a5b233a6a995b6b6d11051367984c76e457d9f7
-
 source-repository-package
   type: git
   location: https://github.com/jgm/commonmark-hs
diff --git a/pandoc.cabal b/pandoc.cabal
index e9efed5f7..3f6b6cdab 100644
--- a/pandoc.cabal
+++ b/pandoc.cabal
@@ -506,7 +506,7 @@ library
                  syb                   >= 0.1      && < 0.8,
                  tagsoup               >= 0.14.6   && < 0.15,
                  temporary             >= 1.1      && < 1.4,
-                 texmath               >= 0.12.3.2 && < 0.12.4,
+                 texmath               >= 0.12.4   && < 0.12.5,
                  text                  >= 1.1.1.0  && < 2.1,
                  text-conversions      >= 0.3      && < 0.4,
                  time                  >= 1.5      && < 1.14,
diff --git a/stack.yaml b/stack.yaml
index 763107d09..97cd0c706 100644
--- a/stack.yaml
+++ b/stack.yaml
@@ -32,8 +32,7 @@ extra-deps:
 - aeson-pretty-0.8.9
 - unicode-transforms-0.4.0
 - unicode-data-0.2.0
-- git: https://github.com/jgm/texmath.git
-  commit: 9a5b233a6a995b6b6d11051367984c76e457d9f7
+- texmath-0.12.4
 - git: https://github.com/jgm/ipynb.git
   commit: 00246af10885c2ad4413ace4f69a7e6c88297a08
 - git: https://github.com/jgm/citeproc.git