From 1f83f19c92b388c924957512c1ad8e1f1df87012 Mon Sep 17 00:00:00 2001
From: John MacFarlane <jgm@berkeley.edu>
Date: Tue, 26 Jul 2022 10:29:18 -0700
Subject: [PATCH] EPUB writer: allow choice of math method for v3.

Previously we always used MathML for math in EPUB3, because
the spec includes MathML.  But this is not widely supported
by readers, so it seems better to allow users to choose their
math method as they can with EPUB2 or HTML.

Closes #8164.

NOTE!  Existing workflows that produce EPUBv3 documents including
math will be affected by this change.  You must add `--mathml` to
your command line if you want to continue producing MathML.
---
 src/Text/Pandoc/Writers/EPUB.hs | 4 ----
 1 file changed, 4 deletions(-)

diff --git a/src/Text/Pandoc/Writers/EPUB.hs b/src/Text/Pandoc/Writers/EPUB.hs
index 8eb70746d..c8d70f1c7 100644
--- a/src/Text/Pandoc/Writers/EPUB.hs
+++ b/src/Text/Pandoc/Writers/EPUB.hs
@@ -491,10 +491,6 @@ pandocToEPUB version opts doc = do
       opts' = opts{ writerEmailObfuscation = NoObfuscation
                   , writerSectionDivs = True
                   , writerVariables = vars
-                  , writerHTMLMathMethod =
-                       if epub3
-                          then MathML
-                          else writerHTMLMathMethod opts
                   , writerWrapText = WrapAuto }
 
   -- cover page