diff --git a/pandoc.cabal b/pandoc.cabal
index 1eb6838fc..ad3b64909 100644
--- a/pandoc.cabal
+++ b/pandoc.cabal
@@ -485,7 +485,7 @@ library
                  syb                   >= 0.1      && < 0.8,
                  tagsoup               >= 0.14.6   && < 0.15,
                  temporary             >= 1.1      && < 1.4,
-                 texmath               >= 0.12.1   && < 0.13,
+                 texmath               >= 0.12.2   && < 0.13,
                  text                  >= 1.1.1.0  && < 1.3,
                  text-conversions      >= 0.3      && < 0.4,
                  time                  >= 1.5      && < 1.10,
diff --git a/stack.yaml b/stack.yaml
index 6ab76bb21..0f21bbb6c 100644
--- a/stack.yaml
+++ b/stack.yaml
@@ -12,6 +12,7 @@ extra-deps:
 - skylighting-0.10.4.1
 - doclayout-0.3.0.2
 - citeproc-0.3.0.9
+- texmath-0.12.2
 ghc-options:
    "$locals": -fhide-source-paths -Wno-missing-home-modules
 resolver: lts-17.5