Skip to content

Commit

Permalink
Update Mathjax URL
Browse files Browse the repository at this point in the history
  • Loading branch information
juba committed Jun 22, 2020
1 parent 94cd7a3 commit 8b97336
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 2 deletions.
1 change: 1 addition & 0 deletions NEWS
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
rmdformats 0.4.0
----------------

* Set mathjax URL to mathjax.rstudio.com
* Add support for code_download (thanks @ltrainstg)
* Add support for dropdown tabsets (thanks @dktanwar)
* Improve handling of internal links between pages
Expand Down
7 changes: 5 additions & 2 deletions R/html_dependencies.R
Original file line number Diff line number Diff line change
Expand Up @@ -43,9 +43,12 @@ html_dependency_bootstrap_js <- function() {
))
}

# Mathjax (function copied from rmarkdown)
# Mathjax (functions copied from rmarkdown)
default_mathjax <- function() {
"https://cdnjs.cloudflare.com/ajax/libs/mathjax/2.7.1/MathJax.js?config=TeX-AMS-MML_HTMLorMML"
paste0("https://mathjax.rstudio.com/latest/", mathjax_config())
}
mathjax_config <- function() {
"MathJax.js?config=TeX-AMS-MML_HTMLorMML"
}

# Navigation.js (copied and adapted from rmarkdown
Expand Down

0 comments on commit 8b97336

Please sign in to comment.