以下是重构后的代码:

```javascript

MathJax.Hub.Config({

"HTML-CSS": {

preferredFont: "TeX",

availableFonts: ["STIX", "TeX"],

linebreaks: { automatic: true },

EqnChunk: (MathJax.Hub.Browser.isMobile ? 10 : 50)

},

tex2jax: {

inlineMath: [["$", "$"], ["\\(", "\)"]],

displayMath: [["$$", "$$"], ["\\[", "\\]"]],

processEscapes: true,

ignoreClass: "tex2jax_ignore|dno"

},

TeX: {

noUndefined: { attributes: { mathcolor: "red", mathbackground: "#FFEEEE", mathsize: "90%" } }

},

messageStyle: "none"

});

```