Skip to content

Commit

Permalink
Added config option to bs4_book and gitbook for changing Mathjax rend…
Browse files Browse the repository at this point in the history
…erer
  • Loading branch information
bwu62 committed Jul 23, 2024
1 parent 7903c33 commit 3ebaa46
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=TeX-AMS-MML_HTMLorMML";
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 (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=TeX-MML-AM_CHTML";
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 (location.protocol !== "file:")
if (/^https?:/.test(src))
src = src.replace(/^https?:/, '');
Expand Down

0 comments on commit 3ebaa46

Please sign in to comment.