File tree Expand file tree Collapse file tree 2 files changed +3
-3
lines changed Expand file tree Collapse file tree 2 files changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -535,9 +535,9 @@ MathJax.Hub.Config({
535
535
// or "all" to number all displayed equations
536
536
// formatNumber: function (n) {return n}, // format for equation number n
537
537
// 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,"_ ")},
539
539
// // element ID to use for reference
540
- // formatURL: function (id,base) {return base+'#'+escape (id)},
540
+ // formatURL: function (id,base) {return base+'#'+encodeURIComponent (id)},
541
541
// // URL to use for references
542
542
useLabelIds : true // make element ID's use \label name rather than equation number
543
543
} ,
Original file line number Diff line number Diff line change @@ -42,7 +42,7 @@ MathJax.InputJax.TeX = MathJax.InputJax({
42
42
formatNumber : function ( n ) { return n } ,
43
43
formatTag : function ( n ) { return '(' + n + ')' } ,
44
44
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 ) } ,
46
46
useLabelIds : true
47
47
}
48
48
} ,
You can’t perform that action at this time.
0 commit comments