Skip to content

Commit 2c451bd

Browse files
committed
update default fontURL
1 parent 5afd2e8 commit 2c451bd

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -83,7 +83,7 @@ The `config` method is used to set _global_ configuration options. Its default o
8383
displayErrors: true, // determines whether error messages are shown on the console
8484
undefinedCharError: false, // determines whether "unknown characters" (i.e., no glyph in the configured fonts) are saved in the error array
8585
extensions: '', // a convenience option to add MathJax extensions
86-
fontURL: 'https://cdn.mathjax.org/mathjax/latest/fonts/HTML-CSS', // for webfont urls in the CSS for HTML output
86+
fontURL: 'https://cdnjs.cloudflare.com/ajax/libs/mathjax/2.7.0/fonts/HTML-CSS', // for webfont urls in the CSS for HTML output
8787
MathJax: { } // standard MathJax configuration options, see https://docs.mathjax.org for more detail.
8888
}
8989
```

lib/main.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ var displayMessages = false; // don't log Message.Set() calls
3838
var displayErrors = true; // show error messages on the console
3939
var undefinedChar = false; // unknown characters are not saved in the error array
4040
var extensions = ''; // no additional extensions used
41-
var fontURL = 'https://cdn.mathjax.org/mathjax/latest/fonts/HTML-CSS'; // location of web fonts for CHTML
41+
var fontURL = 'https://cdnjs.cloudflare.com/ajax/libs/mathjax/2.7.0/fonts/HTML-CSS'; // location of web fonts for CHTML
4242

4343
var defaults = {
4444
ex: 6, // ex-size in pixels

0 commit comments

Comments
 (0)