commit e3914df18780bdb586fc828c01f5f775e5661a0a
parent 850f736aa7f8cd08ce2b01b1b47dafa00edc15c4
Author: Frédéric Wang <fred.wang@free.fr>
Date: Mon, 9 Sep 2013 14:57:54 +0200
Set the default mml2jax preview to "mathml". #557
Diffstat:
2 files changed, 13 insertions(+), 7 deletions(-)
diff --git a/unpacked/config/default.js b/unpacked/config/default.js
@@ -432,12 +432,15 @@ MathJax.Hub.Config({
//
// Controls whether mml2jax inserts MathJax_Preview spans to make a
- // preview available, and what preview to use, whrn it locates
- // mathematics on the page. The default is "alttext", which means use
- // the <math> tag's alttext attribute as the preview (until it is
- // processed by MathJax), if the tag has one. Set to "none" to
+ // preview available, and what preview to use, when it locates
+ // mathematics on the page. The default is "mathml" which means use
+ // the <math> tag as the preview (until it is processed by MathJax).
+ // Set to "alttext", to use the <math> tag's alttext attribute as the
+ // preview, if the tag has one. Set to "none" to
// prevent the previews from being inserted (the math will simply
- // disappear until it is typeset). Set to an array containing the
+ // disappear until it is typeset). Set to "altimg" to use an image
+ // described by the altimg* attributes of the <math> element.
+ // Set to an array containing the
// description of an HTML snippet in order to use the same preview for
// all equations on the page (e.g., you could have it say "[math]" or
// load an image).
@@ -445,7 +448,7 @@ MathJax.Hub.Config({
// E.g., preview: ["[math]"],
// or preview: [["img",{src: "http://myserver.com/images/mypic.jpg"}]]
//
- preview: "alttext"
+ preview: "mathml"
},
diff --git a/unpacked/extensions/mml2jax.js b/unpacked/extensions/mml2jax.js
@@ -29,8 +29,11 @@
MathJax.Extension.mml2jax = {
version: "2.2",
config: {
- preview: "alttext" // Use the <math> element's alttext as the
+ preview: "mathml" // Use the <math> element as the
// preview. Set to "none" for no preview,
+ // set to "alttext" to use the alttext attribute
+ // of the <math> element, set to "altimg" to use
+ // an image described by the altimg* attributes
// or set to an array specifying an HTML snippet
// to use a fixed preview for all math