You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I'm writing my blog with redcarpet to render Markdown and Ketax (a JS lib) to render Latex. Redcarpet comes first at backend, then Ketax renders after HTML is rendered
I met some issue for writing multiple line equations. For example:
I wrote this; The \\ means a line break in the formula:
However, this is just a workaround; Because two \\ is standard in Latex, it works globally, I have to manually add extra \ to make it work together with redcarpet.
Question
Is it possible to stop \ escaping under some conditions: for example between \begin and \end?
Otherwise, I can use some extra symbols to isolate them. I can use $$$ to wrap all Latex thing like:
Hi!
I'm writing my blog with redcarpet to render Markdown and Ketax (a JS lib) to render Latex. Redcarpet comes first at backend, then Ketax renders after HTML is rendered
I met some issue for writing multiple line equations. For example:
I wrote this; The
\\
means a line break in the formula:Expected:
Actual: as
\
is used to escape chars in redcarpet, the two\\
became one\
, so it becomesWorkaround
In order to make it work, I have to use three
\\\
or four\\\\
to make it render two\\
:or
However, this is just a workaround; Because two
\\
is standard in Latex, it works globally, I have to manually add extra\
to make it work together with redcarpet.Question
Is it possible to stop
\
escaping under some conditions: for example between\begin
and\end
?Otherwise, I can use some extra symbols to isolate them. I can use
$$$
to wrap all Latex thing like:Is there any way I can make
$$$
work like three ```s? Just wrap it with a<p>
and keep everything as-is.The text was updated successfully, but these errors were encountered: