# Latex formula not displaying correctly

#### sofiacardita

29 Aug, 2017 06:10 PM

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

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

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

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. Posted by sofiacardita on 29 Aug, 2017 10:14 PM

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

### Generic

? Show this help Blurs the current field

### Comment Form

r Focus the comment reply box Submit the comment

You can use Command ⌘ instead of Control ^ on Mac

## Recent Discussions

 18 Sep, 2017 04:36 PM Specific features of in-app purchase 13 Sep, 2017 05:20 PM The “Discount/GFM” processor does not correctly handled embedded “)” characters in URLs. 08 Sep, 2017 01:50 AM Unable to use Marked with Bear 07 Sep, 2017 06:48 PM Multiple paragraphs in list item 06 Sep, 2017 03:32 PM Tables not working correctly, if either double header row, or caption, tried.

## Recent Articles

 Highlight sentences longer than a certain number of words In-app purchase issues (Error Domain=Paddle Code=0 "(null)") License code has already been utilized How do I retrieve a lost license (direct version) Custom CSS: Writing custom CSS for Marked