Reimplemented MathJax with custom $inlineMath$ delimeters to prevent it from rendering SASS and other challenge descriptions as math functions.

This commit is contained in:
Kris Koishigawa
2018-07-17 20:30:15 +09:00
committed by Mrugesh Mohapatra
parent 2ec8cde148
commit 670fe4194e

View File

@ -40,11 +40,8 @@ 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({
// tex2jax: { inlineMath: [['$', '$'], ['\\(', '\\)']] }
// });
MathJax.Hub.Config({ MathJax.Hub.Config({
tex2jax: { inlineMath: [['$$', '$$']] } tex2jax: { inlineMath: [['$inlineMath$', '$inlineMath$']] }
}); });
} }