diff options
author | JSDurand <mmemmew@gmail.com> | 2022-08-30 11:36:08 +0800 |
---|---|---|
committer | JSDurand <mmemmew@gmail.com> | 2022-08-30 11:36:08 +0800 |
commit | 94c61bd7ebf3b04c09d24dadd57b2b4d463741de (patch) | |
tree | 85d608830e0c2df975ce28a4edcfa49ebebfae55 | |
parent | 7dd9767a8eca66bb40660d8d77c258b60d08d4df (diff) |
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.
-rw-r--r-- | org-conf.el | 9 |
1 files changed, 9 insertions, 0 deletions
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 </a>.")) (setq org-html-head-include-scripts nil) +;;;; Add correct type attribute + +(setq org-html-mathjax-template + (replace-regexp-in-string + (rx-to-string '(seq "<script src=\"" (1+ (not ?\")) "\"" (group ">")) t) + " type=\"text/javascript\">" + org-html-mathjax-template + t nil 1)) + ;;;; Projects settings (setq org-publish-project-alist |