Changeset 3359042
- Timestamp:
- 09/10/2025 08:47:13 AM (5 months ago)
- Location:
- simple-mathjax/trunk
- Files:
-
- 2 edited
-
readme.txt (modified) (2 diffs)
-
simple-mathjax.php (modified) (4 diffs)
Legend:
- Unmodified
- Added
- Removed
-
simple-mathjax/trunk/readme.txt
r3340219 r3359042 6 6 Requires at least: 3.0 7 7 Tested up to: 6.8 8 Stable tag: 2.1. 08 Stable tag: 2.1.1 9 9 10 10 Yet another plugin to add MathJax support to your wordpress blog. … … 25 25 26 26 == Changelog == 27 28 = 2.1.1 = 29 The custom config no longer has the HTML escaping filter applied. 27 30 28 31 = 2.1.0 = -
simple-mathjax/trunk/simple-mathjax.php
r3340219 r3359042 3 3 * Plugin Name: Simple MathJax 4 4 * Description: Load the mathjax scripts across your wordpress blog 5 * Version: 2.1. 05 * Version: 2.1.1 6 6 * Author: Samuel Coskey, Peter Krautzberger, Christian Lawson-Perfect 7 7 * Author URI: https://boolesrings.org 8 * License: GPLv3 9 * License URI: https://www.gnu.org/licenses/gpl-3.0.txt 8 10 */ 9 11 … … 83 85 $options = self::load_options(); 84 86 $version = $options['major_version']; 85 $custom_config = wp_kses( $options['custom_mathjax_config'], array() );87 $custom_config = $options['custom_mathjax_config']; 86 88 $config = $custom_config ? $custom_config : self::$default_configs[$version]; 87 89 if($version==2) { … … 224 226 $options = self::load_options(); 225 227 ?> 226 <textarea id="custom_mathjax_config" cols="50" rows="10" name="simple_mathjax_options[custom_mathjax_config]"><?= $options['custom_mathjax_config'] ?></textarea>228 <textarea style="font-family: monospace;" id="custom_mathjax_config" cols="50" rows="10" name="simple_mathjax_options[custom_mathjax_config]"><?= $options['custom_mathjax_config'] ?></textarea> 227 229 <p>This text will be used to configure MathJax. See <a href="https://docs.mathjax.org/en/latest/options/index.html">the documentation on configuring MathJax</a>.</p> 228 230 <p>If you leave this blank, the default will be used, according to the major version of MathJax:</p> … … 242 244 $options = self::load_options(); 243 245 ?> 244 <textarea id="latex_preamble" cols="50" rows="10" name="simple_mathjax_options[latex_preamble]"><?= $options['latex_preamble'] ?></textarea>246 <textarea style="font-family: monospace;" id="latex_preamble" cols="50" rows="10" name="simple_mathjax_options[latex_preamble]"><?= $options['latex_preamble'] ?></textarea> 245 247 <p>This LaTeX will be run invisibly before any other LaTeX on the page. A good place to put \newcommand's and \renewcommand's</p> 246 248 <p><strong>Do not use $ signs</strong>, they will be added for you.</p>
Note: See TracChangeset
for help on using the changeset viewer.