Commit 11422c95 authored by lucha's avatar lucha

[auto] plugin: mathjax-latex 1.3.11

parent e60ba635
......@@ -19,7 +19,7 @@
* along with this program. If not, see http://www.gnu.org/licenses/.
*/
define( 'MATHJAX_VERSION', '1.3.10' );
define( 'MATHJAX_VERSION', '1.3.11' );
require_once __DIR__ . '/class-mathjax-latex-admin.php';
......@@ -152,7 +152,7 @@ class MathJax_Latex {
// initialise option for existing MathJax-LaTeX users
if ( get_option( 'kblog_mathjax_use_cdn' ) || ! get_option( 'kblog_mathjax_custom_location' ) ) {
$mathjax_location = 'https://cdnjs.cloudflare.com/ajax/libs/mathjax/2.7.2/MathJax.js';
$mathjax_location = 'https://cdnjs.cloudflare.com/ajax/libs/mathjax/2.7.5/MathJax.js';
} else {
$mathjax_location = get_option( 'kblog_mathjax_custom_location' );
}
......@@ -237,7 +237,7 @@ class MathJax_Latex {
$filtered_content = preg_replace_callback(
'/(<math.*>.*<\/math>)/isU',
function( $matches ) {
return str_replace( array( '<br/>', '<br />', '<br>' ), '', $matches[0] );
return str_replace( [ '<br/>', '<br />', '<br>' ], '', $matches[0] );
},
$content
);
......
......@@ -2,7 +2,7 @@
/**
* Plugin Name: MathJax-LaTeX
* Description: Transform latex equations in JavaScript using mathjax
* Version: 1.3.10
* Version: 1.3.11
* Author: Phillip Lord, Simon Cockell, Paul Schreiber
* Author URI: http://knowledgeblog.org
*
......
......@@ -3,8 +3,8 @@
Contributors: philliplord, sjcockell, knowledgeblog, d_swan, paulschreiber, jwenerd
Tags: mathematics, math, latex, mathml, mathjax, science, res-comms, scholar, academic
Requires at least: 3.0
Tested up to: 4.9.1
Stable tag: 1.3.10
Tested up to: 5.0.3
Stable tag: 1.3.11
Requires PHP: 7.0.0
License: GPLv2
......@@ -13,17 +13,17 @@ WordPress (http://www.wordpress.org).
== Description ==
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.
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.
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.
The MathJax JavaScript can be delivered from your own server, or you can use the CDNJS Content Distribution Network (CDN), which is the preferred mechanism as it offers increased speed and stability over hosting the JavaScript and configuring the library yourself.
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.
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.
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.
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.
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.
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.
You can also specify [nomathjax] -- this will block mathjax on the current page, regardless of other tags.
You can also specify `[nomathjax]` -- this will block mathjax on the current page, regardless of other tags.
MathJax-LaTeX is developed on [GitHub](https://github.com/phillord/mathjax-latex).
......@@ -34,6 +34,10 @@ MathJax-LaTeX is developed on [GitHub](https://github.com/phillord/mathjax-latex
== Changelog ==
= 1.3.11 =
1. Use version 2.7.5 of MathJax JS
= 1.3.10 =
1. Rename class files, per PHPCS
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment