diff --git a/cabal.project b/cabal.project
index f38eace9c..bf848963e 100644
--- a/cabal.project
+++ b/cabal.project
@@ -3,15 +3,22 @@ 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: 70ed0b8d143fcfc78b425885ed593c91305c8639
+
 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: 02f573527d537a3f9e037d460638d1e4f8a5ca9b
   subdir: commonmark
+
 source-repository-package
   type: git
   location: https://github.com/jgm/commonmark-hs.git
diff --git a/stack.yaml b/stack.yaml
index 4d303b8ce..d90e05699 100644
--- a/stack.yaml
+++ b/stack.yaml
@@ -34,7 +34,6 @@ extra-deps:
 - aeson-pretty-0.8.9
 - unicode-transforms-0.4.0@rev:1
 - unicode-data-0.3.0
-- texmath-0.12.4
 - commonmark-pandoc-0.2.1.2
 - ipynb-0.2
 - git: https://github.com/jgm/citeproc.git
@@ -42,6 +41,8 @@ extra-deps:
 - git: https://github.com/jgm/commonmark-hs.git
   commit: 02f573527d537a3f9e037d460638d1e4f8a5ca9b
   subdirs: [commonmark, commonmark-extensions]
+- git: https://github.com/jgm/texmath.git
+  commit: 70ed0b8d143fcfc78b425885ed593c91305c8639
 ghc-options:
    "$locals": -fhide-source-paths -Wno-missing-home-modules
 resolver: lts-18.10