Skip to content

Commit 5d4a843

Browse files
committed
Trim spaces from content-mathml elements (helps with issue #989.
1 parent 4779c91 commit 5d4a843

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

unpacked/extensions/MathML/content-mathml.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -190,6 +190,7 @@ MathJax.Extension["MathML/content-mathml"] = (function(HUB) {
190190
*/
191191
appendToken: function(parentNode,name,textContent) {
192192
var element = CToP.createElement(name);
193+
textContent = textContent.replace(/^\s+/,"").replace(/\s+$/,"");
193194
if (name === 'mn' && textContent.substr(0,1) === "-") {
194195
//
195196
// use <mrow><mo>&#x2212;</mo><mn>n</mn></mrow> instead of <mn>-n</mn>

0 commit comments

Comments
 (0)