From 670fe4194ed0d9d7e88e78925afa290fedf3762d Mon Sep 17 00:00:00 2001 From: Kris Koishigawa Date: Tue, 17 Jul 2018 20:30:15 +0900 Subject: [PATCH] Reimplemented MathJax with custom `$inlineMath$` delimeters to prevent it from rendering SASS and other challenge descriptions as math functions. --- .../learn/src/templates/Challenges/components/Side-Panel.js | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/packages/learn/src/templates/Challenges/components/Side-Panel.js b/packages/learn/src/templates/Challenges/components/Side-Panel.js index a108a5b987..de29448840 100644 --- a/packages/learn/src/templates/Challenges/components/Side-Panel.js +++ b/packages/learn/src/templates/Challenges/components/Side-Panel.js @@ -40,11 +40,8 @@ export class SidePanel extends PureComponent { constructor(props) { super(props); this.bindTopDiv = this.bindTopDiv.bind(this); - // MathJax.Hub.Config({ - // tex2jax: { inlineMath: [['$', '$'], ['\\(', '\\)']] } - // }); MathJax.Hub.Config({ - tex2jax: { inlineMath: [['$$', '$$']] } + tex2jax: { inlineMath: [['$inlineMath$', '$inlineMath$']] } }); }