Skip to content

Commit e3914df

Browse files
committed
Set the default mml2jax preview to "mathml". #557
1 parent 850f736 commit e3914df

File tree

2 files changed

+13
-7
lines changed

2 files changed

+13
-7
lines changed

unpacked/config/default.js

Lines changed: 9 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -432,20 +432,23 @@ MathJax.Hub.Config({
432432

433433
//
434434
// Controls whether mml2jax inserts MathJax_Preview spans to make a
435-
// preview available, and what preview to use, whrn it locates
436-
// mathematics on the page. The default is "alttext", which means use
437-
// the <math> tag's alttext attribute as the preview (until it is
438-
// processed by MathJax), if the tag has one. Set to "none" to
435+
// preview available, and what preview to use, when it locates
436+
// mathematics on the page. The default is "mathml" which means use
437+
// the <math> tag as the preview (until it is processed by MathJax).
438+
// Set to "alttext", to use the <math> tag's alttext attribute as the
439+
// preview, if the tag has one. Set to "none" to
439440
// prevent the previews from being inserted (the math will simply
440-
// disappear until it is typeset). Set to an array containing the
441+
// disappear until it is typeset). Set to "altimg" to use an image
442+
// described by the altimg* attributes of the <math> element.
443+
// Set to an array containing the
441444
// description of an HTML snippet in order to use the same preview for
442445
// all equations on the page (e.g., you could have it say "[math]" or
443446
// load an image).
444447
//
445448
// E.g., preview: ["[math]"],
446449
// or preview: [["img",{src: "http://myserver.com/images/mypic.jpg"}]]
447450
//
448-
preview: "alttext"
451+
preview: "mathml"
449452

450453
},
451454

unpacked/extensions/mml2jax.js

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,8 +29,11 @@
2929
MathJax.Extension.mml2jax = {
3030
version: "2.2",
3131
config: {
32-
preview: "alttext" // Use the <math> element's alttext as the
32+
preview: "mathml" // Use the <math> element as the
3333
// preview. Set to "none" for no preview,
34+
// set to "alttext" to use the alttext attribute
35+
// of the <math> element, set to "altimg" to use
36+
// an image described by the altimg* attributes
3437
// or set to an array specifying an HTML snippet
3538
// to use a fixed preview for all math
3639

0 commit comments

Comments
 (0)