tag:support.markedapp.com,2011-09-11:/discussions/problems/140956-latex-formula-not-displaying-correctlyMarked: Discussion 2018-10-19T05:39:14Ztag:support.markedapp.com,2011-09-11:Comment/433145302017-08-29T18:10:45Z2017-08-29T18:10:47ZLatex formula not displaying correctly <div><p>This formula below displays correctly in <a href="https://stackedit.io/editor">https://stackedit.io/editor</a> but not in Marked.</p>
<p>$$ f_{L}(X)=β<em>{0}+β</em>{1}X_{1}+β<em>{2}X</em>{2}+...β<em>{p} X</em>{p}. $$</p>
<p>Is there anything I can do to fix it?</p>
<p>Thanks</p>
<p>PS. My advanced configuration:</p>
<p>{ tex2jax: { inlineMath: [["$","$"],["\(","\)"]], displayMath: [["$$","$$"],["\[","\]"]], processEscapes: true } }</p></div>sofiacarditatag:support.markedapp.com,2011-09-11:Comment/433145302017-08-29T19:17:13Z2017-08-29T19:17:13ZLatex formula not displaying correctly <div><p>I'm afraid I know so little about LaTeX and MathJax equations that I'm unsure exactly how this is supposed to work. However, I am seeing that escaping the underscores helps with either the MMD or GitHub processor…</p>
<pre>
<code>$$ f\_{L}(X)=β\_{0}+β\_{1}X\_{1}+β\_{2}X\_{2}+...β\_{p} X\_{p}. $$</code>
</pre>
<p>In this case the Markdown processor isn't recognizing it as a math formula (because only the <code>\\[ *formula* \\]</code> syntax works at the processing point, so it's seeing emphasis tags and inserting <code><em></code>, breaking the MathJax rendering.</p></div>Bretttag:support.markedapp.com,2011-09-11:Comment/433145302017-08-29T22:14:46Z2017-08-29T22:14:46ZLatex formula not displaying correctly <div><p>Thank you! That was right!</p></div>sofiacardita