Skip to content

Commit

Permalink
Changed option to 'mathjax-config'
Browse files Browse the repository at this point in the history
  • Loading branch information
bwu62 committed Jul 23, 2024
1 parent 3ebaa46 commit 8b7b0f1
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion inst/templates/bs4_book.html
Original file line number Diff line number Diff line change
Expand Up @@ -158,7 +158,7 @@ <h2>On this page</h2>
var script = document.createElement("script");
script.type = "text/javascript";
var src = "$if(mathjax)$$mathjax$$endif$";
if (src === "" || src === "true") src = "https://cdnjs.cloudflare.com/ajax/libs/mathjax/2.7.9/latest.js?config=$if(mathjax-renderer)$$mathjax-renderer$$else$TeX-MML-AM_CHTML$endif$";
if (src === "" || src === "true") src = "https://cdnjs.cloudflare.com/ajax/libs/mathjax/2.7.9/latest.js?config=$if(mathjax-config)$$mathjax-config$$else$TeX-MML-AM_CHTML$endif$";
if (location.protocol !== "file:")
if (/^https?:/.test(src))
src = src.replace(/^https?:/, '');
Expand Down
2 changes: 1 addition & 1 deletion inst/templates/gitbook.html
Original file line number Diff line number Diff line change
Expand Up @@ -205,7 +205,7 @@ <h1>
var script = document.createElement("script");
script.type = "text/javascript";
var src = "$if(mathjax)$$mathjax$$endif$";
if (src === "" || src === "true") src = "https://cdnjs.cloudflare.com/ajax/libs/mathjax/2.7.9/latest.js?config=$if(mathjax-renderer)$$mathjax-renderer$$else$TeX-MML-AM_CHTML$endif$";
if (src === "" || src === "true") src = "https://cdnjs.cloudflare.com/ajax/libs/mathjax/2.7.9/latest.js?config=$if(mathjax-config)$$mathjax-config$$else$TeX-MML-AM_CHTML$endif$";
if (location.protocol !== "file:")
if (/^https?:/.test(src))
src = src.replace(/^https?:/, '');
Expand Down

0 comments on commit 8b7b0f1

Please sign in to comment.