# problem with MathJax and GFM Process

#### hexid26

28 Apr, 2018 08:18 AM

The source markdown file is all_formula.md.
When previewed by Marked2, there are some problems at the end of this article.
An attachment shows that the character _ may cause this problem.
Another attachment is the preview in Atom, which is correct.

I don't know what makes the problem occur.
And I hope the engineers can help me to fix it.
Thanks very much.

PS:
The rest attachments are the config of Marded2 on my Mac.
My system and Marked2 are both up-to-date.
And I add the config following the help document, which tells me that to add the code in Enable MathJax -> Advanced Configuration.
The code is as follows:

{
"HTML-CSS": {
messageStyle: "normal",
linebreaks: {
automatic: false
}
},
tex2jax: {
inlineMath: [["$","$"],["\$","\$"]],
displayMath: [["$$","$$"],["\$","\$"]],
processEscapes: true
},
TeX: {
Macros: {
tr: "{\\scriptscriptstyle\\mathrm{T}}",
}
}
}
1. Support Staff Posted by Brett on 28 Apr, 2018 04:29 PM

It appears that selecting TeX-AMS-MML_SVG in the MathJax configuration
dropdown fixes the issue. I am by no means a MathJax expert (and
honestly, I don't know what half of the MathJax config settings mean).
It seems, though, that the MML-AM configuration that you have selected
is unable to process the apostrophe character as a valid symbol.

-Brett

2. Support Staff Posted by Brett on 28 Apr, 2018 04:32 PM

Oh, and the underscores do require escaping with the GFM processor:

${P}\_{np}(t)$

Otherwise if there are two in a paragraph it assumes italics and breaks
the paragraph rendering.

-Brett

Formatting help / Preview (switch to plain text) No formatting (switch to Markdown)

### »

• all_formula.md 3.94 KB
• Screen_Shot_2018-04-28_at_16.03.47.png 74.3 KB
• Screen_Shot_2018-04-28_at_16.05.34.png 53.1 KB
• Marked2Config.png 944 KB

#### Attached Files

You can attach files up to 10MB

If you don't have an account yet, we need to confirm you're human and not a machine trying to post spam.

# 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

 24 Feb, 2021 06:25 AM pdflatex not found 23 Feb, 2021 06:39 PM streaming preview beachballs when URL is supplied 21 Feb, 2021 05:24 PM LanguageTool support 21 Feb, 2021 01:11 PM Obsidian and link support 19 Feb, 2021 11:39 AM curly quotes break rendering

## Recent Articles

 Intra-document links in exported PDFs Using Ulysses with Marked Fenced code blocks inside indented code blocks Using JavaScript in Marked Custom CSS: Writing custom CSS for Marked