From ca2eaf5bcc9ea01e764f6088e37d74ec2be6e426 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Rudolf=20Adamkovi=C4=8D?= Date: Fri, 7 Oct 2022 15:03:48 +0200 Subject: [PATCH] ox-html: Use MathJax 3 instead of 2.7 * lisp/ox-html.el (org-html-mathjax-options): WIP * lisp/ox-html.el (org-html-mathjax-template): WIP --- lisp/ox-html.el | 51 +++++++++++++++++++++++++------------------------ 1 file changed, 26 insertions(+), 25 deletions(-) diff --git a/lisp/ox-html.el b/lisp/ox-html.el index 9b77e4f8d..c6242d4bc 100644 --- a/lisp/ox-html.el +++ b/lisp/ox-html.el @@ -1166,12 +1166,12 @@ See `format-time-string' for more information on its components." ;;;; Template :: Mathjax (defcustom org-html-mathjax-options - '((path "https://cdnjs.cloudflare.com/ajax/libs/mathjax/2.7.0/MathJax.js?config=TeX-AMS_HTML" ) - (scale "100") + '((path "https://cdn.jsdelivr.net/npm/mathjax@3/es5/tex-mml-chtml.js") + (scale "1") ;; TODO: 0-1 AND NOT 0-100; NUMBER AND NOT STRING (align "center") - (font "TeX") - (linebreaks "false") - (autonumber "AMS") + (font "TeX") ;; TODO: NOT SUPPORTED + (linebreaks "false") ;; TODO: NOT SUPPORTED + (autonumber "ams") ;; TODO: NOW CALLED TAGS AND IN LOWERCASE (indent "0em") (multlinewidth "85%") (tagindent ".8em") @@ -1244,27 +1244,28 @@ For further information about MathJax options, see the MathJax documentation: (const "right"))))) (defcustom org-html-mathjax-template - " -" + +" "The MathJax template. See also `org-html-mathjax-options'." :group 'org-export-html :type 'string) -- 2.37.3