Skip to content

Commit b226b15

Browse files
committed
Switch MathJax script to CDNJS
Close #789.
1 parent f567e9a commit b226b15

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

MacDown/Code/Document/MPRenderer.m

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@
2121

2222

2323
static NSString * const kMPMathJaxCDN =
24-
@"https://cdn.mathjax.org/mathjax/latest/MathJax.js"
24+
@"https://cdnjs.cloudflare.com/ajax/libs/mathjax/2.7.1/MathJax.js"
2525
@"?config=TeX-AMS-MML_HTMLorMML";
2626
static NSString * const kMPPrismScriptDirectory = @"Prism/components";
2727
static NSString * const kMPPrismThemeDirectory = @"Prism/themes";

MacDown/MacDown-Info.plist

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -92,7 +92,7 @@
9292
<true/>
9393
<key>NSExceptionDomains</key>
9494
<dict>
95-
<key>mathjax.org</key>
95+
<key>cdnjs.cloudflare.com</key>
9696
<dict>
9797
<key>NSExceptionRequiresForwardSecrecy</key>
9898
<false/>

0 commit comments

Comments
 (0)