I have a Jekyll site hosted on github pages. I have successfully loaded MathJax in my _layouts/default.html
and now want to author my document. I have tried to set all cofiguration to default to not complicate matters.
The problem is that in some MathJax environments you want to write \
to denote a newline (such as the align
environment, but backslash is a special character in markdown. See example below.
Desired output
<p>egin{align}
x&=3+2\
&=5
end{align}</p>
Since one must escape backslash in markdown, I have writte the document below
Current input
\begin{align}
x&=3+2\\
&=5
\end{align}
running kramdown myfile.md
produces
Current output
<p>egin{align}
x&=3+2<br />
&=5
end{align}</p>
This is expected given the kramdown syntax for paragraphs.
How do I get kramdown to output \
at the end of the row, instead of giving me a <br />
?
question from:
https://stackoverflow.com/questions/65933424/how-to-produce-at-end-of-line-with-kramdown 与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…