# Latex formula not displaying correctly

This formula below displays correctly in https://stackedit.io/editor 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?

Thanks

PS. My advanced configuration:

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

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

# Keyboard shortcuts

### Generic

? | 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

Support Staff 1 Posted by

Bretton 29 Aug, 2017 07:17 PMI'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…

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 Posted by

sofiacarditaon 29 Aug, 2017 10:14 PMThank you! That was right!

sofiacardita

closedthis discussion on 29 Aug, 2017 11:07 PM.