problem with MathJax and GFM Process
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}}",
}
}
}
- 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
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 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
Support Staff 2 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