Skip to content

Commit dfa7407

Browse files
Merge pull request #24 from paulschreiber/mathjax272
Update to MathJax 2.7.2
2 parents 0d51513 + 5588342 commit dfa7407

File tree

2 files changed

+21
-43
lines changed

2 files changed

+21
-43
lines changed

mathjax-latex.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -161,7 +161,7 @@ public static function add_script() {
161161

162162
// initialise option for existing MathJax-LaTeX users
163163
if ( get_option( 'kblog_mathjax_use_cdn' ) || ! get_option( 'kblog_mathjax_custom_location' ) ) {
164-
$mathjax_location = 'https://cdnjs.cloudflare.com/ajax/libs/mathjax/2.7.0/MathJax.js';
164+
$mathjax_location = 'https://cdnjs.cloudflare.com/ajax/libs/mathjax/2.7.2/MathJax.js';
165165
} else {
166166
$mathjax_location = get_option( 'kblog_mathjax_custom_location' );
167167
}

readme.txt

Lines changed: 20 additions & 42 deletions
Original file line numberDiff line numberDiff line change
@@ -3,46 +3,27 @@
33
Contributors: philliplord, sjcockell, knowledgeblog, d_swan, paulschreiber, jwenerd
44
Tags: mathematics, math, latex, mathml, mathjax, science, res-comms, scholar, academic
55
Requires at least: 3.0
6-
Tested up to: 4.7.3
7-
Stable tag: 1.3.6
8-
License: GPLv3
6+
Tested up to: 4.8.1
7+
Stable tag: 1.3.7
8+
Requires PHP: 5.4.0
9+
License: GPLv2
910

1011
This plugin enables mathjax (http://www.mathjax.org) functionality for
1112
WordPress (http://www.wordpress.org).
1213

1314
== Description ==
1415

15-
Mathjax enables enables rendering of embedded latex or mathml in HTML pages.
16-
This plugin adds this functionality to wordpress. The mathjax javascript is
17-
inject on-demand only to those pages which require it. This ensures that
18-
mathjax is not loaded for all pages, which will otherwise slow loading down.
19-
20-
The MathJax javascript can be delivered from your own server, or you can
21-
utilise the [MathJax Content Distribution Network (CDN)]
22-
(http://www.mathjax.org/docs/latest/start.html#mathjax-cdn), which is the preferred
23-
mechanism as it offers increased speed and stability over hosting the Javascript
24-
and configuring the library yourself. Use of the CDN is governed by these
25-
[Terms of Service](http://www.mathjax.org/download/mathjax-cdn-terms-of-service/).
26-
27-
You may embed latex using a variety of different syntaxes. The shortcode
28-
(http://codex.wordpress.org/Shortcode_API) syntax is preferred. So
29-
[latex]E=mc^2[/latex] will work out of the box. This also forces loading of
30-
mathjax.
31-
32-
Additionally, you can use native mathjax syntax -- $$E=mc^2$$ or \(E=mc^2\).
33-
However, if this is the only syntax used, the plugin must be explicitly told
34-
to load mathjax for the current page. This can be achieved by adding a
35-
[mathjax] shortcode anywhere in the post. For posts with both [latex]x[/latex]
36-
and $$x$$ syntaxes this is unnecessary.
37-
38-
You can use wp-latex syntax, $latex E=mc^2$. Parameters can be
39-
specified as with wp-latex but will be ignored. This means that mathjax-latex
40-
should be a drop in replacement for wp-latex. Because this conflicts with
41-
wp-latex, this behaviour is blocked when wp-latex is present, and must be
42-
explicitly enabled in the settings.
43-
44-
You can also specify [nomathjax] -- this will block mathjax on the
45-
current page, regardless of other tags.
16+
Mathjax enables enables rendering of embedded latex or mathml in HTML pages. This plugin adds this functionality to wordpress. The mathjax javascript is inject on-demand only to those pages which require it. This ensures that mathjax is not loaded for all pages, which will otherwise slow loading down.
17+
18+
The MathJax javascript can be delivered from your own server, or you can use the [CloudFlare Content Distribution Network (CDN)] (https://www.mathjax.org/cdn-shutting-down/), which is the preferred mechanism as it offers increased speed and stability over hosting the Javascript and configuring the library yourself.
19+
20+
You may embed latex using a variety of different syntaxes. The shortcode (http://codex.wordpress.org/Shortcode_API) syntax is preferred. So [latex]E=mc^2[/latex] will work out of the box. This also forces loading of mathjax.
21+
22+
Additionally, you can use native mathjax syntax -- $$E=mc^2$$ or \(E=mc^2\). However, if this is the only syntax used, the plugin must be explicitly told to load mathjax for the current page. This can be achieved by adding a [mathjax] shortcode anywhere in the post. For posts with both [latex]x[/latex] and $$x$$ syntaxes this is unnecessary.
23+
24+
You can use wp-latex syntax, $latex E=mc^2$. Parameters can be specified as with wp-latex but will be ignored. This means that mathjax-latex should be a drop in replacement for wp-latex. Because this conflicts with wp-latex, this behaviour is blocked when wp-latex is present, and must be explicitly enabled in the settings.
25+
26+
You can also specify [nomathjax] -- this will block mathjax on the current page, regardless of other tags.
4627

4728
MathJax-LaTeX is developed on
4829
[Github](https://github.com/phillord/mathjax-latex).
@@ -51,15 +32,13 @@ MathJax-LaTeX is developed on
5132

5233
1. Unzip the downloaded .zip archive to the `/wp-content/plugins/` directory
5334
1. Activate the plugin through the 'Plugins' menu in WordPress
54-
1. This uses the mathjax
55-
CDN(<http://www.mathjax.org/docs/1.1/start.html#mathjax-cdn>). Alternatively:
56-
1. Download the MathJax Javascript library (http://www.mathjax.org /download/)
57-
1. Place the Javascript library in the mathjax-latex directory (`/wp-content/plugins/mathjax-latex/MathJax`)
58-
1. You can configure the plugin to load MathJax from a different URL to the default. See the options page.
59-
6035

6136
== Changelog ==
6237

38+
= 1.3.7 =
39+
40+
1. Update MathJax to 2.7.2
41+
6342
= 1.3.6 =
6443

6544
1. Update location of MathJax CDN
@@ -148,5 +127,4 @@ CDN for javascript delivery. Upgrading is strongly recommended.
148127

149128
== Copyright ==
150129

151-
This plugin is copyright Phillip Lord, Newcastle University and is licensed
152-
under GPLv2.
130+
This plugin is copyright Phillip Lord, Newcastle University and is licensed under GPLv2.

0 commit comments

Comments
 (0)