File CVE-2024-38526-2.patch of Package ghc-pandoc.39314
From 59cc5c37251a9a180717474612d6efbd4ad90402 Mon Sep 17 00:00:00 2001
From: John MacFarlane <jgm@berkeley.edu>
Date: Wed, 26 Jun 2024 23:46:18 -0600
Subject: [PATCH] HTML templates: don't load polyfill.
This was added in a period when MathJaX required polyfill.
MathJaX no longer recommends this and polyfill should no
longer be necessary on any reasonably modern browser.
Closes #9918.
---
data/templates/default.html4 | 3 ---
data/templates/default.html5 | 3 ---
2 files changed, 6 deletions(-)
diff --git a/data/templates/default.html4 b/data/templates/default.html4
index 636018a45c20..daef6adb2ae3 100644
--- a/data/templates/default.html4
+++ b/data/templates/default.html4
@@ -27,9 +27,6 @@ $for(header-includes)$
$header-includes$
$endfor$
$if(math)$
-$if(mathjax)$
- <script src="https://cdnjs.cloudflare.com/polyfill/v3/polyfill.min.js?features=es6"></script>
-$endif$
$math$
$endif$
</head>
diff --git a/data/templates/default.html5 b/data/templates/default.html5
index bc8a48a6e878..26740d1b0ece 100644
--- a/data/templates/default.html5
+++ b/data/templates/default.html5
@@ -27,9 +27,6 @@ $for(header-includes)$
$header-includes$
$endfor$
$if(math)$
-$if(mathjax)$
- <script src="https://cdnjs.cloudflare.com/polyfill/v3/polyfill.min.js?features=es6"></script>
-$endif$
$math$
$endif$
</head>