Latex formula not displaying correctly

sofiacardita's Avatar


29 Aug, 2017 06:10 PM

This formula below displays correctly in but not in Marked.

$$ f_{L}(X)=β{0}+β{1}X_{1}+β{2}X{2}+...β{p} X{p}. $$

Is there anything I can do to fix it?


PS. My advanced configuration:

{ tex2jax: { inlineMath: [["$","$"],["\(","\)"]], displayMath: [["$$","$$"],["\[","\]"]], processEscapes: true } }

  1. Support Staff 1 Posted by Brett on 29 Aug, 2017 07:17 PM

    Brett's Avatar

    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…

    $$ f\_{L}(X)=β\_{0}+β\_{1}X\_{1}+β\_{2}X\_{2}+...β\_{p} X\_{p}. $$

    In this case the Markdown processor isn't recognizing it as a math formula (because only the \\[ *formula* \\] syntax works at the processing point, so it's seeing emphasis tags and inserting <em>, breaking the MathJax rendering.

  2. 2 Posted by sofiacardita on 29 Aug, 2017 10:14 PM

    sofiacardita's Avatar

    Thank you! That was right!

  3. sofiacardita closed this discussion on 29 Aug, 2017 11:07 PM.

Comments are currently closed for this discussion. You can start a new one.

Keyboard shortcuts


? Show this help
ESC Blurs the current field

Comment Form

r Focus the comment reply box
^ + ↩ Submit the comment

You can use Command ⌘ instead of Control ^ on Mac