From 94c61bd7ebf3b04c09d24dadd57b2b4d463741de Mon Sep 17 00:00:00 2001 From: JSDurand Date: Tue, 30 Aug 2022 11:36:08 +0800 Subject: org: modify mathjax template * org-conf.el (org-html-mathjax-template): The original template does not conform to XHTML strict 1.0, so I modify it to fit in the specification. Specifically, I added the type attribute to a script element. --- org-conf.el | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/org-conf.el b/org-conf.el index 9e31b92..c2afc19 100644 --- a/org-conf.el +++ b/org-conf.el @@ -632,6 +632,15 @@ CC BY-SA .")) (setq org-html-head-include-scripts nil) +;;;; Add correct type attribute + +(setq org-html-mathjax-template + (replace-regexp-in-string + (rx-to-string '(seq "