Temp: Remove MathJax (#186)
parent
10b3b747d6
commit
9333729dca
|
@ -1,10 +1,10 @@
|
||||||
import favicons from './favicons';
|
import favicons from './favicons';
|
||||||
import meta from './meta';
|
import meta from './meta';
|
||||||
import styleSheets from './styleSheets';
|
import styleSheets from './styleSheets';
|
||||||
import mathjax from './mathjax';
|
// import mathjax from './mathjax';
|
||||||
|
|
||||||
const metaAndStyleSheets = meta
|
const metaAndStyleSheets = meta
|
||||||
.concat(favicons, styleSheets, mathjax)
|
.concat(favicons, styleSheets)
|
||||||
.map((element, i) => ({ ...element, key: `meta-stylesheet-${i}` }));
|
.map((element, i) => ({ ...element, key: `meta-stylesheet-${i}` }));
|
||||||
|
|
||||||
export default metaAndStyleSheets;
|
export default metaAndStyleSheets;
|
||||||
|
|
|
@ -24,9 +24,9 @@ const mapDispatchToProps = dispatch =>
|
||||||
initConsole
|
initConsole
|
||||||
},
|
},
|
||||||
dispatch
|
dispatch
|
||||||
);
|
);
|
||||||
|
|
||||||
const MathJax = global.MathJax;
|
// const MathJax = global.MathJax;
|
||||||
|
|
||||||
const propTypes = {
|
const propTypes = {
|
||||||
description: PropTypes.arrayOf(PropTypes.string),
|
description: PropTypes.arrayOf(PropTypes.string),
|
||||||
|
@ -39,19 +39,21 @@ const propTypes = {
|
||||||
export class SidePanel extends PureComponent {
|
export class SidePanel extends PureComponent {
|
||||||
constructor(props) {
|
constructor(props) {
|
||||||
super(props);
|
super(props);
|
||||||
this.bindTopDiv = this.bindTopDiv.bind(this);
|
this.bindTopDiv = this.bindTopDiv.bind(this);
|
||||||
MathJax.Hub.Config({
|
// MathJax.Hub.Config({
|
||||||
tex2jax: { inlineMath: [['$', '$'], ['\\(', '\\)']] }
|
// tex2jax: { inlineMath: [['$', '$'], ['\\(', '\\)']] }
|
||||||
});
|
// });
|
||||||
}
|
}
|
||||||
|
|
||||||
componentDidMount() {
|
componentDidMount() {
|
||||||
MathJax.Hub.Queue(['Typeset', MathJax.Hub, document.querySelector('.challenge-instructions')]);
|
// MathJax.Hub.Queue(['Typeset', MathJax.Hub,
|
||||||
|
// document.querySelector('.challenge-instructions')]);
|
||||||
this.props.initConsole('');
|
this.props.initConsole('');
|
||||||
}
|
}
|
||||||
|
|
||||||
componentDidUpdate(prevProps) {
|
componentDidUpdate(prevProps) {
|
||||||
MathJax.Hub.Queue(['Typeset', MathJax.Hub, document.querySelector('.challenge-instructions')]);
|
// MathJax.Hub.Queue(['Typeset', MathJax.Hub,
|
||||||
|
// document.querySelector('.challenge-instructions')]);
|
||||||
const { title, initConsole } = this.props;
|
const { title, initConsole } = this.props;
|
||||||
if (title !== prevProps.title) {
|
if (title !== prevProps.title) {
|
||||||
initConsole('');
|
initConsole('');
|
||||||
|
|
Loading…
Reference in New Issue