Skip to content

Commit bd86d0a

Browse files
committed
Fix incorrect name of encodeURIComponent, and fix default.js to correspond to changes.
1 parent 723e05e commit bd86d0a

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

unpacked/config/default.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -535,9 +535,9 @@ MathJax.Hub.Config({
535535
// or "all" to number all displayed equations
536536
// formatNumber: function (n) {return n}, // format for equation number n
537537
// formatTag: function (n) {return '('+n+')'}, // format for \tag and \eqref
538-
// formatID: function (n) {return 'mjx-eqn-'+String(n).replace(/[:'"<>&]/g,"")},
538+
// formatID: function (n) {return 'mjx-eqn-'+String(n).replace(/\s/g,"_")},
539539
// // element ID to use for reference
540-
// formatURL: function (id,base) {return base+'#'+escape(id)},
540+
// formatURL: function (id,base) {return base+'#'+encodeURIComponent(id)},
541541
// // URL to use for references
542542
useLabelIds: true // make element ID's use \label name rather than equation number
543543
},

unpacked/jax/input/TeX/config.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@ MathJax.InputJax.TeX = MathJax.InputJax({
4242
formatNumber: function (n) {return n},
4343
formatTag: function (n) {return '('+n+')'},
4444
formatID: function (n) {return 'mjx-eqn-'+String(n).replace(/\s/g,"_")},
45-
formatURL: function (id,base) {return base+'#'+escapeURIComponent(id)},
45+
formatURL: function (id,base) {return base+'#'+encodeURIComponent(id)},
4646
useLabelIds: true
4747
}
4848
},

0 commit comments

Comments
 (0)